[Kde-pim] Re: How to reload Akonadi data

David Jarvie djarvie at kde.org
Mon Nov 8 11:43:17 GMT 2010


On Mon, November 8, 2010 9:49 am, Kevin Krammer wrote:
> 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()

Thanks. I've looked at the documentation for the two synchronisation
methods. The API descriptions of both methods just say that they "trigger
synchronization". That phrase doesn't sound as if it does a reload, but
rather just a check as to whether anything has changed since the last
update. What does synchronisation actually involve?

-- 
David Jarvie.
KDE developer.
KAlarm author - http://www.astrojar.org.uk/kalarm

_______________________________________________
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