[Kde-pim] Re: Akonadi resource: How to update item if backend data changed
Grégory Oestreicher
greg at kamago.net
Wed Jun 8 20:00:20 BST 2011
Le mercredi 8 juin 2011 19:48:14, rgruber at users.sourceforge.net a écrit :
>
> So many questions :)
At least for the initial one I can tell how this is done in the DAV resource.
In retrieveItems() it just calls clearPayload() on the items for which a
change was found to trigger a refetch from Akonadi. This will in turn call
retrieveItem(). This solution works quite well and is rather simple. If
however you have the full payload in retrieveItems() then you'll fetch it
twice when using this method.
You can take a look and re-use some code from the DAV resource as both should
be fairly close in the end.
Cheers,
Grégory
_______________________________________________
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