[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] How to resolve Item/Collection from ID?
From: Kevin Krammer <krammer () kde ! org>
Date: 2013-04-24 13:46:28
Message-ID: 201304241546.37740.krammer () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
["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