Bug 21168 - Idle doesn't implement Connection.Interface.Contacts
Summary: Idle doesn't implement Connection.Interface.Contacts
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: idle (show other bugs)
Version: unspecified
Hardware: Other All
: medium major
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/wj...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-04-14 04:46 UTC by Simon McVittie
Modified: 2011-08-03 02:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Connection: use TP_STRUCT_TYPE_ALIAS_PAIR (1.96 KB, patch)
2011-07-20 11:27 UTC, Will Thompson
Details | Splinter Review
Implement GetAliases() (2.99 KB, patch)
2011-07-20 11:27 UTC, Will Thompson
Details | Splinter Review
Connection: replace constructor with constructed. (1.73 KB, patch)
2011-07-20 11:27 UTC, Will Thompson
Details | Splinter Review
Add a TpContactsMixin (4.89 KB, patch)
2011-07-20 11:27 UTC, Will Thompson
Details | Splinter Review
Contacts: support Aliasing (4.20 KB, patch)
2011-07-20 11:27 UTC, Will Thompson
Details | Splinter Review
Contacts: add stub support for ContactInfo (2.37 KB, patch)
2011-07-20 11:27 UTC, Will Thompson
Details | Splinter Review

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.