24#ifndef SYNCCLIENTINTERFACEPRIVATE_H
25#define SYNCCLIENTINTERFACEPRIVATE_H
28#include <QDBusPendingCallWatcher>
29#include <QDBusServiceWatcher>
30#include "SyncDaemonProxy.h"
31#include <SyncProfile.h>
38class SyncClientInterface;
60 bool startSync(
const QString &aProfileId)
const;
61 QDBusPendingCallWatcher* requestSync(
const QString &aProfileId, QObject *aParent);
67 void abortSync(
const QString &aProfileId)
const;
74 QDBusPendingCallWatcher* requestRunningSyncList(QObject *aParent);
134 QDBusPendingCallWatcher* requestAllVisibleSyncProfiles(QObject *aParent);
156 QDBusPendingCallWatcher* requestSyncProfilesByKey(
const QString &aKey,
const QString &aValue, QObject *aParent);
164 QDBusPendingCallWatcher* requestProfilesByType(
const QString &aType, QObject *aParent);
198 void slotProfileChanged(QString aProfileId,
int aChangeType, QString aChangedProfileAsXml);
221 void profileChanged(QString aProfileId,
int aChangeType, QString aChangedProfile);
231 void onServiceOwnerChanged(
const QString &serviceName,
const QString &oldOwner,
const QString &newOwner);
234 QDBusServiceWatcher iServiceWatcher;
Private implementation class for SyncClientInterface.
Definition SyncClientInterfacePrivate.h:42
QStringList getRunningSyncList()
function to get Running sync list
Definition SyncClientInterfacePrivate.cpp:128
QStringList profilesByType(const QString &aType)
Gets profiles matching the profile type.
Definition SyncClientInterfacePrivate.cpp:316
bool removeProfile(const QString &aProfileId)
function to remove a profile
Definition SyncClientInterfacePrivate.cpp:145
void resultsAvailable(QString aProfileId, QString aLastSyncResultAsXml)
this is the slot where we will receive the xml data for results from msyncd the xml looks like this
Definition SyncClientInterfacePrivate.cpp:173
bool getBackUpRestoreState()
function to add a profile
Definition SyncClientInterfacePrivate.cpp:215
void profileChanged(QString aProfileId, int aChangeType, QString aChangedProfile)
Signal that gets emitted on receiving profileChanged from msyncd.
Definition moc_SyncClientInterfacePrivate.cpp:173
bool setSyncSchedule(const QString &aProfileId, const SyncSchedule &aSchedule)
this function converts the SyncSchedule object to an xml file of the below format
Definition SyncClientInterfacePrivate.cpp:186
void slotProfileChanged(QString aProfileId, int aChangeType, QString aChangedProfileAsXml)
this is the slot where we will receive the xml data for profile from msyncd. The XML Data received wi...
Definition SyncClientInterfacePrivate.cpp:166
QList< QString > allVisibleSyncProfiles()
Gets all visible sync profiles.
Definition SyncClientInterfacePrivate.cpp:249
bool startSync(const QString &aProfileId) const
function to start the sync
Definition SyncClientInterfacePrivate.cpp:101
bool isValid()
function to check if the interface is valid
Definition SyncClientInterfacePrivate.cpp:225
bool saveSyncResults(const QString &aProfileId, const Buteo::SyncResults &aSyncResults)
this function converts the save the syncResults into log.xml file corresponding to profileName.
Definition SyncClientInterfacePrivate.cpp:201
bool updateProfile(const Buteo::SyncProfile &aProfile)
function to update an existing profile
Definition SyncClientInterfacePrivate.cpp:155
QStringList syncProfilesByKey(const QString &aKey, const QString &aValue)
Gets a sync profiles which matches the key-value.
Definition SyncClientInterfacePrivate.cpp:285
QString syncProfile(const QString &aProfileId)
Gets a sync profile.
Definition SyncClientInterfacePrivate.cpp:272
QStringList syncProfilesByType(const QString &aType)
Gets a profiles matching the profile type.
Definition SyncClientInterfacePrivate.cpp:304
Buteo::SyncResults getLastSyncResult(const QString &aProfileId)
To get lastSyncResult.
Definition SyncClientInterfacePrivate.cpp:230
void abortSync(const QString &aProfileId) const
function to abort the sync
Definition SyncClientInterfacePrivate.cpp:120
~SyncClientInterfacePrivate()
Destructor.
Definition SyncClientInterfacePrivate.cpp:85
SyncInterface Class - Main Entry Point for SyncFW Clients.
Definition SyncClientInterface.h:52
A top level synchronization profile.
Definition SyncProfile.h:49
Contains information about a completed synchronization session.
Definition SyncResults.h:62
Class for handling sync schedule settings.
Definition SyncSchedule.h:53
Definition SyncBackupAdaptor.h:40
Proxy class for interface com.meego.msyncd.
Definition SyncDaemonProxy.h:49