[Bug 42702] New: TpContact: add API to know if a contact is channel specific

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 8 14:18:31 CET 2011


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

             Bug #: 42702
           Summary: TpContact: add API to know if a contact is channel
                    specific
    Classification: Unclassified
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: tp-glib
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: guillaume.desmottes at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


We don't have any API to easily know if a TpContact is channel specific or not.

What about adding something like:

/**
 * tp_contact_is_channel_specific:
 * @self: a #TpContact
 *
 * Returns: (transfer none): a #TpChannel if @self is specific to this channel,
 * %NULL otherwise
 */


I'm not fan of having a  _is_ method returning a non gboolean, but the
TpChannel is useful to get the owner if we want to (using
tp_channel_group_get_contact_owner()).

Also, the documentation of this method would be a bit weird as it will rely on
TP_CHANNEL_FEATURE_CONTACTS being prepared on the *channel*...

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



More information about the telepathy-bugs mailing list