[Kde-pim] Re: collection of akonadiitems

Gerd Fleischer gerdfleischer at gmx.de
Sun Mar 20 15:58:29 GMT 2011


Am Sonntag, 20. März 2011, 16:09:48 schrieb Christian Mollekopf:
> You can get the collection id directly by setting the ItemFetchScope 
> correcectly:
> 
> job->fetchScope().setAncestorRetrieval( Akonadi::ItemFetchScope::Parent );
> 
> item.parentCollection() will then return a collection with the correct id.
> If you need more infos than only the id, you will need to run an explicit 
> collectionfetch job for the parent collection, though.

Thanks for you answer, I tried this already, unfortunately name() and resource(), where i'm 
interested in, are empty. :-(

As I use first a collectionfetchjob I use a QHash now to store the collections and get them with 
storagecollectionid().

Thanks, Gerd
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list