[Kde-pim] How to resolve Item/Collection from ID?
Kevin Krammer
krammer at kde.org
Wed Apr 24 14:46:28 BST 2013
On Wednesday, 2013-04-24, Jonathan Marten wrote:
> I'm working on the command line Akonadi copier/syncer which I mentioned
> a while ago, which is coming along well. The means of specifying
> items or collections will be by numeric ID - a path may be more
> friendly, but for that to be possible Akonadi::CollectionPathResolver
> will have to become a public interface.
It is private as in "no guarantees" but installed.
See [1].
> So my quick question: given a numeric Akonadi::Entity ID, what is the
> simplest/cheapest way to determine whether this is an Item, a
> Collection, or neither? Preferably by a means that does not involve
> too many round trips to the Akonadi server.
If you only have an id it could be both. If you know it is an item a simple
Item item(id);
(same for collection) followed by the respective fetch job.
Also see [1] :)
Cheers,
Kevin
[1] git://anongit.kde.org/scratch/krake/akonadiclient
--
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/20130424/61bd88bd/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