[Kde-pim] Akonadi Collection Id to Name

Volker Krause vkrause at kde.org
Fri Feb 10 09:56:29 GMT 2012


On Thursday 26 January 2012 02:11:03 Kevin Krammer wrote:
> Hi Allen,
> 
> On Thursday, 2012-01-26, Allen Winter wrote:
> > Howdy,
> > 
> > I have an Akonadi::Collection and I get its URL as akonadi:?collection=121
> > 
> > is there a way to turn the collection 121 into a pretty name?
> > 
> > I mainly want to know for Calendar collections.
> > 
> > I tried using Akonadi::EntityDisplayAttribute and looking at the
> > displayName but that isn't helping.
> 
> If your collection has only basic data (e.g.only collection ID) you need to
> fetch more details using CollectionFetchJob (using fetch type Base).

Alternatively, you might be able to get the full collection object from ETM, 
if you have one already. That avoids the server round-trip and is easier to 
write code (sync vs. async).

regards
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20120210/7452f20f/attachment.sig>
-------------- next part --------------
_______________________________________________
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