View Single Post
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#14
Originally Posted by Endymion View Post
Ok, so... how can i access the LINKED informations tu a given contact, i.e. the sync server?
Can you give me some code examples?

I know this is a BIG question...
Contact information is accessible using the QtContacts API. A contact in your addressbook is made up of one (or more) QContact instances aggregated together in the UI (yes, sorry, not fantastic architecture, but we've been locked into it for an awfully long time).

QContact instances contain QContactDetail instances which are the actual information about a contact, e.g. a QContactName detail contains their first/last/etc names, QContactPhoneNumber contains information about one phone number for the contact. You get the idea.

To find where a contact is synced to, you want the QContactSyncTarget detail (http://doc.qt.nokia.com/qtmobility/q...ynctarget.html)
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.