[Kde-pim] Akonadi::ResourceBase::retrieveItems()

Daniel Vrátil dvratil at redhat.com
Fri Feb 6 12:05:46 GMT 2015


On Thursday, February 05, 2015 06:37:19 PM Martin Koller wrote:
> Can this method always return ALL items available, or does the resource have
> to know which of these are already known to Akonadi ?

Non-incremental sync is supported,  just use 
Akonadi::ResourceBase::itemsRetrieved(). But if you can somehow do incremental 
sync, then use it instead, you will have much better performance.

Also if you enable streaming (setItemStreamingEnabled()), then you can call 
itemsRetrieved() multiple times, and then just call itemsRetrievalDone() when 
you are...done ;)

Cheers,
Dan


-- 
Daniel Vrátil | dvratil at redhat.com | dvratil on #kde-devel, #kontact, #akonadi
Software Engineer - KDE Desktop Team, Red Hat Inc.

GPG Key: 0xC59D614F6F4AE348
Fingerprint: 4EC1 86E3 C54E 0B39 5FDD B5FB C59D 614F 6F4A E348
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20150206/8dcaf26c/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