[Kde-pim] Akonadi Collection Id to Name

Kevin Krammer kevin.krammer at gmx.at
Thu Jan 26 01:11:03 GMT 2012


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).

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- 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/20120126/3fa2e2b4/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