[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:       Volker Krause <vkrause () kde ! org>
Date:       2012-02-10 9:56:29
Message-ID: 1709007.I41QL7UzIk () vkpc9
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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
["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