[Bug 13422] Add nice API for channel creation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 13 09:21:33 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=13422

--- Comment #6 from Danielle Madeley <danielle.madeley at collabora.co.uk> 2010-04-13 00:21:32 PDT ---
Ok. So I've had a very interesting idea here.

It would be pretty neat to populate the detail for the GSignal with the last
part of the channel type (e.g. Text, ContactList) so that the user can connect
new-channel::text if she wishes.

In fact, rather than simply using the channel type, we could extend this
further by also considering the handle type, perhaps allowing for the following
possible details:

::chat (channel-type Text, handle-type Contact)
::muc (channel-type Text, handle-type Room)
::contact-list (channel-type ContactList, handle-type List)
::contact-group (channel-type ContactList, handle-type Group)
::dbus-tube
::stream-tube
::file-transfer

We could then conceivably take this one step further and use
g_signal_has_handler_pending() to know whether or not we have a pending
handler, to decide whether or not to prepare a TpChannel for this handler.
However maybe this is going too far (it's not like preparation is a big step on
top of receiving the signal).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list