ButeoSynchronizationFramework
|
Public Member Functions | |
SyncOnChangeScheduler () | |
constructor | |
~SyncOnChangeScheduler () | |
destructor | |
bool | addProfile (const SyncProfile *aProfile) |
Call this method to schedule SOC for a profile. More... | |
void | removeProfile (const QString &aProfileName) |
call this method to disable SOC that has been scheduled for a certain profile More... | |
![]() | |
SyncScheduler (QObject *aParent=0) | |
Constructor. | |
virtual | ~SyncScheduler () |
Destructor. | |
bool | addProfile (const SyncProfile *aProfile) |
Adds a profile to the scheduler. More... | |
void | addProfileForSyncRetry (const SyncProfile *aProfile, QDateTime aNextSyncTime) |
void | removeProfile (const QString &aProfileName) |
Removes the profile with the given name from the scheduler. More... | |
Additional Inherited Members | |
![]() | |
void | syncNow (QString aProfileName) |
Signal emitted when a sync session should be launched based on the sync schedule settings of the profile. More... | |
void | externalSyncChanged (const SyncProfile *aProfile, bool aQuery=false) |
Signal emitted when a sync session should be launched based on the sync schedule settings of the profile. More... | |
bool SyncOnChangeScheduler::addProfile | ( | const SyncProfile * | aProfile | ) |
Call this method to schedule SOC for a profile.
There are 3 scheduling criteria - SOC after info from the profile, default SOC after and sync now.
The profile is first checked for sync on change after time, which should be specified in seconds (0 means sync now). If none is specified then we use a default of DEFAULT_SOC_AFTER_TIME
If the profile has already been added and if it's SOC is scheduled, calling this method again will just use the previous schedule, and in this case the method will return false.
Once the SOC is initiated (by sending a syncNow signal), the profile is removed automatically
aProfile | pointer to sync profile |
void SyncOnChangeScheduler::removeProfile | ( | const QString & | aProfileName | ) |
call this method to disable SOC that has been scheduled for a certain profile
aProfileName | name of the profile |