Den 05. mars 2012 15:32, skrev Patrick Ohly: > Technically it is different. So let's clarify: > * You want (or rather, have) to have one address book on the N9. > * On Google you have multiple different accounts, with one default > address book in each account. > * A sync between a Google account and the local address book shall > not update or delete any contact that did not come from that > Google account. > > Possible implementation: > * Set the QContactSyncTarget > (http://doc.qt.nokia.com/qtmobility/qcontactsynctarget.html) on > each QContact after receiving it from Google. > * Filter local contacts by QContactSyncTarget.
I don't think you should coopt the SyncTarget for this purpose. As I remember, it seems that Nokia is using it to identify which subsystem provides the contact information, i.e. "addressbook" for the device's persistent storage, "telepathy" for online contacts found with Telepathy plugins, and so on. You'd use the synctarget to see if this is a Skype contact, a Facebook friend, a phone number in your SIM card, or whatever. And thus, in SyncEvolution for Harmattan, I use it to make sure *only* contacts in the persistent device addressbook are synced, and not your complete list of Facebook friends. And yes, the N9 appears to only have one addressbook. Because of the architecture, it might be possible to make some N9 app that installs a daemon that could provide additional addressbook storage, by maintaining its own database. But I wouldn't count on it. _______________________________________________ SyncEvolution mailing list [email protected] http://lists.syncevolution.org/listinfo/syncevolution
