23#ifndef SYNCSCHEDULER_H
24#define SYNCSCHEDULER_H
26#if defined(USE_KEEPALIVE)
27#include "BackgroundSync.h"
28#include "ProfileManager.h"
29#elif defined(USE_IPHB)
30#include "SyncAlarmInventory.h"
31#include "IPHeartBeat.h"
43#elif defined(USE_IPHB)
50class SyncSchedulerTest;
86 void addProfileForSyncRetry(
const SyncProfile *aProfile, QDateTime aNextSyncTime);
109 const QString &aMessage,
int aMoreDetails);
119 void doAlarmActions(
int aAlarmEventID);
127 void doIPHeartbeatActions(QString aProfileName);
129#if defined(USE_KEEPALIVE)
135 void rescheduleBackgroundActivity(
const QString &aProfileName);
144 void syncNow(QString aProfileName);
161 int setNextAlarm(
const SyncProfile *aProfile, QDateTime aNextSyncTime = QDateTime());
166 void setupDBusAdaptor();
173 void removeAlarmEvent(
int aAlarmEvent);
178 void removeAllAlarms();
182 QSet<QString> iActiveBackgroundSyncProfiles;
183#if defined(USE_KEEPALIVE)
187#elif defined(USE_IPHB)
198#ifdef SYNCFW_UNIT_TESTS
199 friend class SyncSchedulerTest;
BackgroundSync implementation.
Definition BackgroundSync.h:38
IPHeartBeat implementation.
Definition IPHeartBeat.h:39
ProfileManager is responsible for storing and retrieving the profiles.
Definition ProfileManager.h:46
A top level synchronization profile.
Definition SyncProfile.h:49
SyncScheduler Object to be used to set Schedule via the framework.
Definition SyncScheduler.h:55
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:162
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:169
void syncStatusChanged(const QString &aProfileName, int aStatus, const QString &aMessage, int aMoreDetails)
Handles the sync status change signal from the synchronizer.
Definition SyncScheduler.cpp:164
virtual ~SyncScheduler()
Destructor.
Definition SyncScheduler.cpp:65
void removeProfile(const QString &aProfileName)
Removes the profile with the given name from the scheduler.
Definition SyncScheduler.cpp:140
bool addProfile(const SyncProfile *aProfile)
Adds a profile to the scheduler.
Definition SyncScheduler.cpp:98
Definition SyncBackupAdaptor.h:41
Class for storing alarms.
Definition SyncAlarmInventory.h:38