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"
46#elif defined(USE_IPHB)
53class SyncSchedulerTest;
89 void addProfileForSyncRetry(
const SyncProfile *aProfile, QDateTime aNextSyncTime);
112 const QString &aMessage,
int aMoreDetails);
122 void doAlarmActions(
int aAlarmEventID);
130 void doIPHeartbeatActions(QString aProfileName);
132#if defined(USE_KEEPALIVE)
138 void rescheduleBackgroundActivity(
const QString &aProfileName);
164 int setNextAlarm(
const SyncProfile *aProfile, QDateTime aNextSyncTime = QDateTime());
169 void setupDBusAdaptor();
176 void removeAlarmEvent(
int aAlarmEvent);
181 void removeAllAlarms();
185 QSet<QString> iActiveBackgroundSyncProfiles;
187#if defined(USE_KEEPALIVE)
191#elif defined(USE_IPHB)
202#ifdef SYNCFW_UNIT_TESTS
203 friend class SyncSchedulerTest;
BackgroundSync implementation.
Definition BackgroundSync.h:39
IPHeartBeat implementation.
Definition IPHeartBeat.h:39
ProfileManager is responsible for storing and retrieving the profiles.
Definition ProfileManager.h:47
A top level synchronization profile.
Definition SyncProfile.h:49
void syncNow(QString aProfileName)
Signal emitted when a sync session should be launched based on the sync schedule settings of the prof...
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...
SyncScheduler(QObject *aParent=0)
Constructor.
Definition SyncScheduler.cpp:38
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
Class representing a single sync session.
Definition SyncSession.h:44
Definition SyncBackupAdaptor.h:41
Class for storing alarms.
Definition SyncAlarmInventory.h:38