Bug 28299

Summary: high-level API for SetContactInfo, ContactInfoFlags, SupportedFields
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: tp-qtAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: ollisal
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 59609    
Bug Blocks:    

Description Simon McVittie 2010-05-28 04:37:36 UTC
Xavier's telepathy-glib ContactInfo branch (Bug #27676) adds a Feature on TpConnection for ContactInfo's global properties:

ContactInfoFlags:
    * Can_Set: can we set our ContactInfo? (normally true on XMPP, but should
        in principle be false on Facebook if we had a reliable way to detect
        that "anti-capability")
    * Push: false on XMPP, true on Skype
SupportedFields:
    * the complete XEP-0054 set on most XMPP connections
    * a small subset of XEP-0054 on Google Talk servers
    * etc.

telepathy-qt4 should have similar API, although it's not a high priority and nobody's actively working on it at the moment. Xavier's telepathy-glib code can be used for inspiration, particularly after the branch becomes ready to merge.

This might be a good introductory task for someone new to telepathy-qt4?
Comment 1 Olli Salli 2011-12-29 07:28:21 UTC
TelepathyQt doesn't have high-level API for SetContactInfo at all, just for reading remote contact info.

IMO it should take the form of a method on Tp::Connection, which takes (a subclass of) Tp::Contact::InfoFields which should have methods to set the fields, and translates it to the parameters to the SetContactInfo DBus method.
Comment 2 GitLab Migration User 2019-12-03 20:27:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-qt/issues/5.

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.