From kde-pim Sat Feb 18 14:55:19 2012 From: Kevin Krammer Date: Sat, 18 Feb 2012 14:55:19 +0000 To: kde-pim Subject: Re: [Kde-pim] Contacts, Groups, Akonadi and Nepomuk Message-Id: <201202181555.19819.kevin.krammer () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-pim&m=132957697816919 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============7395164769256218597==" --===============7395164769256218597== Content-Type: multipart/signed; boundary="nextPart1829203.BUiavVdTvC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1829203.BUiavVdTvC Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Hi, sorry for not replying earlier, I have just returned from a business trip. On Sunday, 2012-02-12, Dan Vratil wrote: > On Saturday 11 of February 2012 16:41:33 Kevin Krammer wrote: > > On Saturday, 2012-02-11, Dan Vratil wrote: > > > Hello, > > >=20 > > > I 'd like to bring full support for contact groups to the Google > > > Contacts resource. The problem is, that a single contact on Google can > > > be listed in multiple groups, but Akonadi does not seem to support > > > storing single instance of Akonadi::Item in multiple collections > > > without duplication. > >=20 > > See Akonadi::LinkJob and/or KABC::ContactGroup >=20 > Thanks, the Linkjob is exactly what I needed. I've run to some trouble > using it though. >=20 > I have the root collection properly synchronized (that works as expected) > and then I have a subcollection. When retrieveItems() is called for this > subcollection, I fetch all items from the main collection, check their > groups membership and then I call LinkJob to link some of the items from > main collection with the subcollection. This works for the first time - I > can see the linked items in the subcollection (and they are properly > linked in Akonadi database), but when I restart KAddressBook, the linked > items will not appear in the subcollection, no matter what I do. Weird, restarting a client like KAddressBook should not change data in=20 Akonadi. Can you check if the shutdown or the restart of KAddressBook makes the link= ed=20 items vanish from the collection? > Any idea what I could be missing? No idea, sorry. Haven't used linking myself yet, just remembered that there= =20 was a job for that purpose. Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart1829203.BUiavVdTvC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iD8DBQBPP7vXnKMhG6pzZJIRAsaUAJ9Ht3qlOL1Xn15AGIn6ouTOFDGoxQCfX6Pa 1Xr0CSIyO7i6YEp0Xiouk/Q= =A74q -----END PGP SIGNATURE----- --nextPart1829203.BUiavVdTvC-- --===============7395164769256218597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/ --===============7395164769256218597==--