Akonadi::Server::IntervalCheck

Search for usage in LXR

Akonadi::Server::IntervalCheck Class Reference

#include <intervalcheck.h>

Public Member Functions

void requestCollectionSync (const Collection &collection)
 

Protected Member Functions

 IntervalCheck (ItemRetrievalManager &itemRetrievalManager)
 
void collectionExpired (const Collection &collection) override
 
int collectionScheduleInterval (const Collection &collection) override
 
bool hasChanged (const Collection &collection, const Collection &changed) override
 
bool shouldScheduleCollection (const Collection &collection) override
 

Detailed Description

Interval checking thread.

Definition at line 23 of file intervalcheck.h.

Constructor & Destructor Documentation

◆ IntervalCheck()

IntervalCheck::IntervalCheck ( ItemRetrievalManager & itemRetrievalManager)
explicitprotected

Use AkThread::create() to create and start a new IntervalCheck thread.

Definition at line 18 of file intervalcheck.cpp.

◆ ~IntervalCheck()

IntervalCheck::~IntervalCheck ( )
override

Definition at line 24 of file intervalcheck.cpp.

Member Function Documentation

◆ collectionExpired()

void IntervalCheck::collectionExpired ( const Collection & collection)
overrideprotected

Definition at line 56 of file intervalcheck.cpp.

◆ collectionScheduleInterval()

int IntervalCheck::collectionScheduleInterval ( const Collection & collection)
overrideprotected

Definition at line 39 of file intervalcheck.cpp.

◆ hasChanged()

bool IntervalCheck::hasChanged ( const Collection & collection,
const Collection & changed )
overrideprotected

Definition at line 44 of file intervalcheck.cpp.

◆ requestCollectionSync()

void IntervalCheck::requestCollectionSync ( const Collection & collection)

Requests the given collection to be synced.

Executed from any thread, forwards to triggerCollectionXSync() in the retrieval thread. A minimum time interval between two sync requests is ensured.

Definition at line 29 of file intervalcheck.cpp.

◆ shouldScheduleCollection()

bool IntervalCheck::shouldScheduleCollection ( const Collection & collection)
overrideprotected

Definition at line 50 of file intervalcheck.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.