[Bug 47100] add a way to create accounts with properties, without knowing property names/namespaces
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu May 3 15:13:34 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=47100
--- Comment #7 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2012-05-03 06:13:34 PDT ---
Any reason to base this on top of next? I'd like to have it in master if
possible so I can start using it in Empathy sooner rather than later.
If you do rebase, you could use the new glib-style versions macro to anotate
the new API.
You should add it to telepathy-glib/introspection.am
+ gboolean dispose_has_run;
so old school.
tp_future_account_new should be annotated with (transfer full).
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=c5405121ef1fb6a9ad5b76942cc58e624b348121
GObject properties are missing the "Since: ...".
+TpFutureAccount * tp_future_account_new (TpAccountManager *account_manager,
+ const gchar *manager, const gchar *protocol) G_GNUC_WARN_UNUSED_RESULT;
one arg per line.
priv->account_manager is not unreffed.
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=e7c7938b89d79dedf3e99a91d145eac437cba689
Shouldn't tp_future_account_set_display_name() fails if the account has already
be created?
This applies to all set_*() methods as well.
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=50e42faecbbb44552a9d9e04c0b809158d44717c
tp_future_account_constructed: the chain_up should be done first.
Shouldn't TpFutureAccount:parameters: be a GVariant?
Ditto 'properties'?
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=8f4698dc0c8ebd898d4f2bbc97476f5aab5dd5e2
+ if (priv->account_manager == NULL
+ || priv->cm_name == NULL
+ || priv->proto_name == NULL
+ || priv->display_name == NULL)
Shouldn't we check account_manager, cm_name or proto_name in constructed?
tp_future_account_create_account_finish's doc says that only CORE has bit
prepared but actually we get the features from the factory (which is the right
thing to do).
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=64a4af6420377b9de8e277676fd12a1aa2875777
+ * tp_future_account_set_autmatic_presence:
typo
I'm wondering if we shouldn't use a GVariant to store the different (presence,
status, message) and so reduce the number of properties.
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=a64f45dc0e9406771e9960ee135300cc26317131
We could group the 2 avatar properties as well.
http://cgit.freedesktop.org/~jonny/telepathy-glib/commit/?h=future-account-47100&id=a64f45dc0e9406771e9960ee135300cc26317131
tmp is leaked
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the telepathy-bugs
mailing list