[Kde-pim] Re: How to reload Akonadi data
Kevin Krammer
kevin.krammer at gmx.at
Mon Nov 8 09:49:20 GMT 2010
On Sunday, 2010-11-07, David Jarvie wrote:
> Is there a way for an application to request Akonadi data to be reloaded
> for one collection, or for all collections? I'm interested in reloading
> the existing Akonadi data into the application, and also in the
> application requesting the backend data to be reloaded into Akonadi. I
> can't find any API to do any type of reloading.
Reloading from Akonadi into the application depends on how the application
gets its data, i.e. whether it uses ItemFetchJob directly or models.
In the latter case I guess you can "unmonitor" and "remonitor" the resources
or collections on the change recorder.
As for reloading data from the backend into Akonadi, have a look at
AgentManager::synchronizeCollection() and AgentInstance::synchronize()
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20101108/f14d50db/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