Bug 21168

Summary: Idle doesn't implement Connection.Interface.Contacts
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: idleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: major    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://cgit.collabora.com/git/user/wjt/telepathy-idle-wjt.git/log/?h=contacts
Whiteboard:
i915 platform: i915 features:
Attachments: Connection: use TP_STRUCT_TYPE_ALIAS_PAIR
Implement GetAliases()
Connection: replace constructor with constructed.
Add a TpContactsMixin
Contacts: support Aliasing
Contacts: add stub support for ContactInfo

Description Simon McVittie 2009-04-14 04:46:01 UTC
Idle doesn't seem to implement the Contacts D-Bus API. Future work, including telepathy-qt4, will require that API, and it will be made mandatory in the next spec release.
Comment 1 Will Thompson 2011-07-20 03:34:48 UTC
I started looking at this: http://cgit.collabora.com/git/user/wjt/telepathy-idle-wjt.git/log/?h=contacts

Got bogged down in splitting aliasing stuff into a separate file.
Comment 2 Will Thompson 2011-07-20 11:25:49 UTC
Binned the Aliasing refactoring, just implemented Contacts.

I'm pretty sure Idle is the last CM not to support Contacts, so this was the main thing getting in the way of deleting fallback paths from tp-glib.
Comment 3 Will Thompson 2011-07-20 11:27:13 UTC
Created attachment 49350 [details] [review]
Connection: use TP_STRUCT_TYPE_ALIAS_PAIR
Comment 4 Will Thompson 2011-07-20 11:27:17 UTC
Created attachment 49351 [details] [review]
Implement GetAliases()

This went unimplemented for however long!
Comment 5 Will Thompson 2011-07-20 11:27:22 UTC
Created attachment 49352 [details] [review]
Connection: replace constructor with constructed.
Comment 6 Will Thompson 2011-07-20 11:27:28 UTC
Created attachment 49353 [details] [review]
Add a TpContactsMixin
Comment 7 Will Thompson 2011-07-20 11:27:31 UTC
Created attachment 49354 [details] [review]
Contacts: support Aliasing
Comment 8 Will Thompson 2011-07-20 11:27:34 UTC
Created attachment 49355 [details] [review]
Contacts: add stub support for ContactInfo
Comment 9 Xavier Claessens 2011-07-21 03:34:34 UTC
Review of attachment 49350 [details] [review]:

+1
Comment 10 Xavier Claessens 2011-07-21 03:38:17 UTC
Review of attachment 49351 [details] [review]:

small coding stype, otherwise +1

::: src/idle-connection.c
@@ +1194,3 @@
+  GError *error = NULL;
+
+  if (!tp_handles_are_valid(repo, handles, FALSE, &error))

missing space _valid ()
Comment 11 Xavier Claessens 2011-07-21 03:39:31 UTC
Review of attachment 49352 [details] [review]:

+1
Comment 12 Xavier Claessens 2011-07-21 03:47:40 UTC
Review of attachment 49353 [details] [review]:

small coding style, otherwise +1

::: src/idle-connection.c
@@ +227,3 @@
 	priv->msg_queue = g_queue_new();
+
+	tp_contacts_mixin_init((GObject *) obj, G_STRUCT_OFFSET(IdleConnection, contacts));

missing space _init () and OFFSET ()

@@ +409,2 @@
 	g_queue_free(priv->msg_queue);
+	tp_contacts_mixin_finalize(object);

missing space _finalize ()

@@ +483,3 @@
 	g_object_class_install_property(object_class, PROP_PASSWORD_PROMPT, param_spec);
 
+	tp_contacts_mixin_class_init(object_class, G_STRUCT_OFFSET(IdleConnectionClass, contacts));

missing space _init () and OFFSET ()
Comment 13 Xavier Claessens 2011-07-21 03:50:55 UTC
Review of attachment 49354 [details] [review]:

+1
Comment 14 Xavier Claessens 2011-07-21 03:52:30 UTC
Review of attachment 49355 [details] [review]:

+1
Comment 15 Will Thompson 2011-08-03 02:40:22 UTC
Thanks, fixed those points and merged.

It'll be in 0.1.11 or 0.2.0 or whatever it ends up being called.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.