Buteo Synchronization Framework
|
Private implementation class for SyncClientInterface. More...
#include <SyncClientInterfacePrivate.h>
Public Slots | |
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 will be of the following format | |
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 | |
Signals | |
void | profileChanged (QString aProfileId, int aChangeType, QString aChangedProfile) |
Signal that gets emitted on receiving profileChanged from msyncd. | |
void | resultsAvailable (QString aProfileId, Buteo::SyncResults aLastResults) |
Signal that gets emitted on receiving resultsAvailable from msyncd. | |
Public Member Functions | |
SyncClientInterfacePrivate (SyncClientInterface *aParent) | |
Constructor. | |
~SyncClientInterfacePrivate () | |
Destructor. | |
bool | startSync (const QString &aProfileId) const |
function to start the sync | |
QDBusPendingCallWatcher * | requestSync (const QString &aProfileId, QObject *aParent) |
void | abortSync (const QString &aProfileId) const |
function to abort the sync | |
QStringList | getRunningSyncList () |
function to get Running sync list | |
QDBusPendingCallWatcher * | requestRunningSyncList (QObject *aParent) |
bool | removeProfile (const QString &aProfileId) |
function to remove a profile | |
bool | updateProfile (const Buteo::SyncProfile &aProfile) |
function to update an existing profile | |
bool | getBackUpRestoreState () |
function to add a profile | |
bool | isValid () |
function to check if the interface is valid | |
bool | setSyncSchedule (const QString &aProfileId, const SyncSchedule &aSchedule) |
this function converts the SyncSchedule object to an xml file of the below format | |
bool | saveSyncResults (const QString &aProfileId, const Buteo::SyncResults &aSyncResults) |
this function converts the save the syncResults into log.xml file corresponding to profileName. | |
Buteo::SyncResults | getLastSyncResult (const QString &aProfileId) |
To get lastSyncResult. | |
QList< QString > | allVisibleSyncProfiles () |
Gets all visible sync profiles. | |
QDBusPendingCallWatcher * | requestAllVisibleSyncProfiles (QObject *aParent) |
QString | syncProfile (const QString &aProfileId) |
Gets a sync profile. | |
QStringList | syncProfilesByKey (const QString &aKey, const QString &aValue) |
Gets a sync profiles which matches the key-value. | |
QDBusPendingCallWatcher * | requestSyncProfilesByKey (const QString &aKey, const QString &aValue, QObject *aParent) |
QStringList | profilesByType (const QString &aType) |
Gets profiles matching the profile type. | |
QDBusPendingCallWatcher * | requestProfilesByType (const QString &aType, QObject *aParent) |
QStringList | syncProfilesByType (const QString &aType) |
Gets a profiles matching the profile type. | |
Private implementation class for SyncClientInterface.
SyncClientInterfacePrivate::SyncClientInterfacePrivate | ( | SyncClientInterface * | aParent | ) |
Constructor.
aParent | - pointer to the parent object |
void SyncClientInterfacePrivate::abortSync | ( | const QString & | aProfileId | ) | const |
function to abort the sync
aProfileId | - id of the profile to abort the sync |
QList< QString > SyncClientInterfacePrivate::allVisibleSyncProfiles | ( | ) |
Gets all visible sync profiles.
Returns all sync profiles that should be visible in sync ui. A profile is visible if it has not been explicitly set as hidden.
bool SyncClientInterfacePrivate::getBackUpRestoreState | ( | ) |
function to add a profile
Buteo::SyncResults SyncClientInterfacePrivate::getLastSyncResult | ( | const QString & | aProfileId | ) |
QStringList SyncClientInterfacePrivate::getRunningSyncList | ( | ) |
function to get Running sync list
bool SyncClientInterfacePrivate::isValid | ( | ) |
function to check if the interface is valid
|
signal |
Signal that gets emitted on receiving profileChanged from msyncd.
aProfileId | - id of the profile |
aChangeType | - change type whether addition , deletion or modification |
aChangedProfile | - changed sync profie as XMl string. |
QStringList SyncClientInterfacePrivate::profilesByType | ( | const QString & | aType | ) |
Gets profiles matching the profile type.
aType | Type of the profile service/storage/sync. |
bool SyncClientInterfacePrivate::removeProfile | ( | const QString & | aProfileId | ) |
function to remove a profile
aProfileId | id of the profule to remove to add |
|
signal |
Signal that gets emitted on receiving resultsAvailable from msyncd.
aProfileId | - id of the profile |
aLastResults | - last results as SyncResults Object |
|
slot |
this is the slot where we will receive the xml data for results from msyncd the xml looks like this
aProfileId | - id of the profile |
aLastSyncResultAsXml | - last sync result as xml |
bool SyncClientInterfacePrivate::saveSyncResults | ( | const QString & | aProfileId, |
const Buteo::SyncResults & | aSyncResults | ||
) |
this function converts the save the syncResults into log.xml file corresponding to profileName.
bool SyncClientInterfacePrivate::setSyncSchedule | ( | const QString & | aProfileId, |
const SyncSchedule & | aSchedule | ||
) |
this function converts the SyncSchedule object to an xml file of the below format
aProfileId | - profile id |
aSchedule | - schedule object |
|
slot |
this is the slot where we will receive the xml data for profile from msyncd. The XML Data received will be of the following format
aProfileId | - id of the profile |
aChangeType | - change type whether addition , deletion or modification |
aChangedProfileAsXml | - changed profile arrives as xml |
bool SyncClientInterfacePrivate::startSync | ( | const QString & | aProfileId | ) | const |
function to start the sync
aProfileId | - id of the profile to start the sync |
QString SyncClientInterfacePrivate::syncProfile | ( | const QString & | aProfileId | ) |
Gets a sync profile.
Loads and merges also all sub-profiles that are referenced from the main profile. Loads the log of finished synchronization sessions with this profile.
aProfileId | Name of the profile to get. |
QStringList SyncClientInterfacePrivate::syncProfilesByKey | ( | const QString & | aKey, |
const QString & | aValue | ||
) |
Gets a sync profiles which matches the key-value.
Loads and merges also all sub-profiles that are referenced from the main profile. Loads the log of finished synchronization sessions with this profile.
aKey | Key to match for profile. |
aValue | Value to match for profile. |
QStringList SyncClientInterfacePrivate::syncProfilesByType | ( | const QString & | aType | ) |
Gets a profiles matching the profile type.
aType | Type of the profile service/storage/sync. |
bool SyncClientInterfacePrivate::updateProfile | ( | const Buteo::SyncProfile & | aProfile | ) |
function to update an existing profile
aProfile | profile object to add |