[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Akonadi Collection Id to Name
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2012-01-26 1:11:03
Message-ID: 201201260211.07788.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic