[Bug 35199] New: Function to create TpBaseClient from a .client file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 11 08:51:30 CET 2011


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

           Summary: Function to create TpBaseClient from a .client file
           Product: Telepathy
           Version: git master
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tp-glib
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: danielle.madeley at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


It's so easy for .client files and the TpBaseClient to get out of sync, causing
havoc. It would be nice if you could simply create a TpBaseClient from a
.client file.

Proposed API:

TpBaseClient *
tp_base_client_new_from_client_file (const char *filename,
    TpSimpleObserverObserveChannelsImpl observe_channels,
    TpSimpleApproverAddDispatchOperationImpl add_dispatch_op,
    TpSimpleHandlerHandleChannelsImpl handle_channels,
    gpointer user_data,
    GDestroyNotify destroy);

If observe_channels, add_dispatch_op or handle_channels were defined, and the
.client file did not define that type of client, there could be a WARNING.

All properties such as name, recover, delay_approvers, the filters and
capabilities would all be learned from the .client file. The uniquify property
would clearly always be FALSE (you don't want a unique name for a registered
client).

-- 
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