|
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 More... | |
| 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 More... | |
Signals | |
| void | profileChanged (QString aProfileId, int aChangeType, QString aChangedProfile) |
| Signal that gets emitted on receiving profileChanged from msyncd. More... | |
| void | resultsAvailable (QString aProfileId, Buteo::SyncResults aLastResults) |
| Signal that gets emitted on receiving resultsAvailable from msyncd. More... | |
Public Member Functions | |
| SyncClientInterfacePrivate (SyncClientInterface *aParent) | |
| Constructor. More... | |
| ~SyncClientInterfacePrivate () | |
| Destructor. | |
| bool | startSync (const QString &aProfileId) const |
| function to start the sync More... | |
| void | abortSync (const QString &aProfileId) const |
| function to abort the sync More... | |
| QStringList | getRunningSyncList () |
| function to get Running sync list More... | |
| bool | removeProfile (QString &aProfileId) |
| function to remove a profile More... | |
| bool | updateProfile (Buteo::SyncProfile &aProfile) |
| function to update an existing profile More... | |
| bool | getBackUpRestoreState () |
| function to add a profile More... | |
| bool | isValid () |
| function to check if the interface is valid More... | |
| bool | setSyncSchedule (QString &aProfileId, SyncSchedule &aSchedule) |
| this function converts the SyncSchedule object to an xml file of the below format More... | |
| bool | saveSyncResults (const QString &aProfileId, const Buteo::SyncResults &aSyncResults) |
| this function converts the save the syncResults into log.xml file corresponding to profileName. More... | |
| Buteo::SyncResults | getLastSyncResult (const QString &aProfileId) |
| To get lastSyncResult. More... | |
| QList< QString > | allVisibleSyncProfiles () |
| Gets all visible sync profiles. More... | |
| QString | syncProfile (const QString &aProfileId) |
| Gets a sync profile. More... | |
| QStringList | syncProfilesByKey (const QString &aKey, const QString &aValue) |
| Gets a sync profiles which matches the key-value. More... | |
| QStringList | syncProfilesByType (const QString &aType) |
| Gets a profiles matching the profile type. More... | |
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. |
| bool SyncClientInterfacePrivate::removeProfile | ( | 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 | ( | QString & | aProfileId, |
| 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 | ( | Buteo::SyncProfile & | aProfile | ) |
function to update an existing profile
| aProfile | profile object to add |