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

List:       kde-pim
Subject:    Re: [Kde-pim] How to use akonadi
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2009-09-02 6:52:36
Message-ID: 20090902065236.GA3244 () ghostdog ! localnet
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wed, Sep 02, 2009 at 04:28:12AM +0100, David Jarvie wrote:
Hej David,

> I've looked for example code, and looked at the API documentation (including 
> the Akonadi overview there), but I'm at a bit of a loss to know how to start. 
> It would seem that the right thing might be to create an Akonadi::Collection 
> instance, but I'm not sure, and what to do after that isn't clear.
You have to use the Akonadi::(Item/Collection)XyzJobs from kdepimlibs/akonadi
to load, modify and save the items and collections.

So the first step is to use a CollectionFetchJob with the start collection set
to Collection::root() and type set to Recursive. Then in the finish slot of this
job you can trigger an ItemFetchJob for every returned collection.
Then you can iterate over all returned items and filter out everything that
has not the wanted mime type.

Come to #akonadi IRC channel for further questions.

Ciao,
Tobias
-- 
Separate politics from religion and economy!

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