23 #ifndef SYNCSCHEDULER_H 24 #define SYNCSCHEDULER_H 27 #include "BackgroundSync.h" 28 #include "ProfileManager.h" 30 #include "SyncAlarmInventory.h" 31 #include "IPHeartBeat.h" 48 class SyncSchedulerTest;
85 void addProfileForSyncRetry(
const SyncProfile* aProfile, QDateTime aNextSyncTime);
105 void doAlarmActions(
int aAlarmEventID);
113 void doIPHeartbeatActions(QString aProfileName);
121 void rescheduleBackgroundActivity(
const QString& aProfileName);
130 void syncNow(QString aProfileName);
148 int setNextAlarm(
const SyncProfile* aProfile, QDateTime aNextSyncTime = QDateTime());
153 void setupDBusAdaptor();
155 #ifndef USE_KEEPALIVE 160 void removeAlarmEvent(
int aAlarmEvent);
165 void removeAllAlarms();
185 #ifdef SYNCFW_UNIT_TESTS 186 friend class SyncSchedulerTest;
193 #endif // SYNCSCHEDULER_H 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 prof...
Definition: moc_SyncScheduler.cpp:164
SyncScheduler(QObject *aParent=0)
Constructor.
Definition: SyncScheduler.cpp:37
bool addProfile(const SyncProfile *aProfile)
Adds a profile to the scheduler.
Definition: SyncScheduler.cpp:101
void removeProfile(const QString &aProfileName)
Removes the profile with the given name from the scheduler.
Definition: SyncScheduler.cpp:143
BackgroundSync implementation.
Definition: BackgroundSync.h:37
Definition: AccountsHelper.h:31
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:157
ProfileManager is responsible for storing and retrieving the profiles.
Definition: ProfileManager.h:45
virtual ~SyncScheduler()
Destructor.
Definition: SyncScheduler.cpp:64
SyncScheduler Object to be used to set Schedule via the framework.
Definition: SyncScheduler.h:52
IPHeartBeat implementation.
Definition: IPHeartBeat.h:38
A top level synchronization profile.
Definition: SyncProfile.h:47
Class for storing alarms.
Definition: SyncAlarmInventory.h:37