[Kde-pim] Collection sync timer
Kevin Krammer
krammer at kde.org
Thu Apr 11 14:17:11 BST 2013
On Thursday, 2013-04-11, Martin Klapetek wrote:
> On Thu, Apr 11, 2013 at 9:37 AM, Kevin Krammer <krammer at kde.org> wrote:
> > On Wednesday, 2013-04-10, Martin Klapetek wrote:
> > > Hi,
> > >
> > > is there a way to set a particular collection to sync automatically at
> > > a given interval or should I add my own QTimer into the resource? This
> > > is
> >
> > for
> >
> > > the facebook resource to periodically check for new notifications.
> >
> > Akonadi::CachePolicy::setIntervalCheckItem()
> > Akonadi::Collection::setCachePolicy
>
> Hmm...the docs for this say:
>
> "An optional time interval for regular collection sync (aka interval mail
> check).
>
> Synching means fetching updates from the Akonadi database. The cache policy
> does not affect updates of the Akonadi database from the backend,"
>
> Which also seems to be the case for me - the collection is never synced
> from the server. Unless I missed something :)
>
> Akonadi::CachePolicy cachePolicy;
> cachePolicy.setIntervalCheckTime(7);
> cachePolicy.setCacheTimeout(7);
>
> notifications.setCachePolicy(cachePolicy);
This is strange, my understanding is that the interval check time is used by
Akonadi server to call synchronizeCollection perodically.
It is also used that way e.g, in the IMAP resource.
The Cache timeout is, again based on my understanding, the time clients can
fetchs data from the cache without the server trying to retrieve it from the
resource again.
Anyone else?
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/20130411/e1962cc0/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