|
ButeoSynchronizationFramework
|
23 #ifndef SYNCSCHEDULER_H
24 #define SYNCSCHEDULER_H
27 #include "BackgroundSync.h"
28 #include "ProfileManager.h"
30 #include "SyncAlarmInventory.h"
31 #include "IPHeartBeat.h"
50 class SyncSchedulerTest;
87 void addProfileForSyncRetry(
const SyncProfile* aProfile, QDateTime aNextSyncTime);
110 const QString &aMessage,
int aMoreDetails);
114 #ifndef USE_KEEPALIVE
121 void doAlarmActions(
int aAlarmEventID);
129 void doIPHeartbeatActions(QString aProfileName);
137 void rescheduleBackgroundActivity(
const QString& aProfileName);
146 void syncNow(QString aProfileName);
164 int setNextAlarm(
const SyncProfile* aProfile, QDateTime aNextSyncTime = QDateTime());
169 void setupDBusAdaptor();
171 #ifndef USE_KEEPALIVE
176 void removeAlarmEvent(
int aAlarmEvent);
181 void removeAllAlarms();
190 QSet<QString> iActiveBackgroundSyncProfiles;
202 #ifdef SYNCFW_UNIT_TESTS
203 friend class SyncSchedulerTest;
210 #endif // SYNCSCHEDULER_H
BackgroundSync implementation.
Definition: BackgroundSync.h:37
virtual ~SyncScheduler()
Destructor.
Definition: SyncScheduler.cpp:65
IPHeartBeat implementation.
Definition: IPHeartBeat.h:38
A top level synchronization profile.
Definition: SyncProfile.h:48
void externalSyncChanged(QString aProfileName, bool aQuery=false)
Signal emitted when a sync session should be launched based on the sync schedule settings of the prof...
Definition: moc_SyncScheduler.cpp:174
Class for storing alarms.
Definition: SyncAlarmInventory.h:37
ProfileManager is responsible for storing and retrieving the profiles.
Definition: ProfileManager.h:45
void syncStatusChanged(const QString &aProfileName, int aStatus, const QString &aMessage, int aMoreDetails)
Handles the sync status change signal from the synchronizer.
Definition: SyncScheduler.cpp:168
SyncScheduler(QObject *aParent=0)
Constructor.
Definition: SyncScheduler.cpp:38
bool addProfile(const SyncProfile *aProfile)
Adds a profile to the scheduler.
Definition: SyncScheduler.cpp:102
void removeProfile(const QString &aProfileName)
Removes the profile with the given name from the scheduler.
Definition: SyncScheduler.cpp:144
SyncScheduler Object to be used to set Schedule via the framework.
Definition: SyncScheduler.h:54
void syncNow(QString aProfileName)
Signal emitted when a sync session should be launched based on the sync schedule settings of the prof...
Definition: moc_SyncScheduler.cpp:167