[Kde-pim] Re: akonadi items with ids

deloptes deloptes at yahoo.com
Wed Feb 16 09:58:16 GMT 2011


Kevin Krammer wrote:

> Akonadi then assigns an item ID for it and the item create job sets it on
> the item when it emits its result signal.
> 
> The data internal UID, e.g. UID of a contact or event, is part of the
> payload data. See e.g. KABC::Addressee::setUid() for contacts.

Thanks a lot. I'll need some time to understand it correctly (and look into
the code if it's applicable). I think I mixed up the item ID with the UID,
but still not sure if we understand each other and also what I can do to
improve the code (if necessary). For some reason it was not working with
whatever is returned by the id() function, so I used the remoteId, which
almost perfectly works. I thought id() returns the UID, but it seems it
returns the Akonadi id, right?

to have a common ground (and if you are curious) here is the code

http://www.opensync.org/browser/plugins/akonadi-sync/trunk/src/datasink.cpp
line 257        void DataSink::reportChange ( const Item& item )
and below

regards


_______________________________________________
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