23#ifndef SYNCSCHEDULER_H
24#define SYNCSCHEDULER_H
27#include "BackgroundSync.h"
28#include "ProfileManager.h"
30#include "SyncAlarmInventory.h"
31#include "IPHeartBeat.h"
50class SyncSchedulerTest;
87 void addProfileForSyncRetry(
const SyncProfile *aProfile, QDateTime aNextSyncTime);
110 const QString &aMessage,
int aMoreDetails);
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();
176 void removeAlarmEvent(
int aAlarmEvent);
181 void removeAllAlarms();
186 QSet<QString> iActiveBackgroundSyncProfiles;
202#ifdef SYNCFW_UNIT_TESTS
203 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:54
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:239
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:246
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:162
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:138
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