|
| SyncProfile (const QString &aName) |
| Constructs an empty SyncProfile with the given name. More...
|
|
| SyncProfile (const QDomElement &aRoot) |
| Constructs a SyncProfile from the given XML. More...
|
|
| SyncProfile (const SyncProfile &aSource) |
| Copy constructor. More...
|
|
| ~SyncProfile () |
| Destructor.
|
|
virtual SyncProfile * | clone () const |
| Creates a clone of the sync profile. More...
|
|
virtual void | setName (const QString &aName) |
| Sets the name for the profile and associated log.
|
|
virtual void | setName (const QStringList &aKeys) |
| Sets the name for the profile and associated log.
|
|
virtual QDomElement | toXml (QDomDocument &aDoc, bool aLocalOnly=true) const |
|
virtual bool | syncExternallyEnabled () const |
| Checks if schedule is controlled by a external process (e.g always-up-to-date). More...
|
|
virtual bool | rushEnabled () const |
| Checks if rush/off-rush schedule is enabled. More...
|
|
virtual bool | syncExternallyDuringRush () const |
| Checks if external rush schedule is to be obeyed. More...
|
|
virtual bool | inExternalSyncRushPeriod (QDateTime aDateTime=QDateTime::currentDateTime()) const |
| Checks if a given time is inside rush hour and if the sync is controlled by a external process. More...
|
|
QDateTime | lastSyncTime () const |
| Gets the time of last completed sync session with this profile. More...
|
|
QDateTime | lastSuccessfulSyncTime () const |
| Gets the time of the last successful sync session for this profile. More...
|
|
virtual QDateTime | nextSyncTime (QDateTime aDateTime=QDateTime::currentDateTime()) const |
| Gets the next scheduled sync time. More...
|
|
QDateTime | nextRushSwitchTime (const QDateTime &aFromTime) const |
| Gets next time to switch rush/off-rush schedule intervals. More...
|
|
const SyncResults * | lastResults () const |
| Gets the results of the last sync from the sync log. More...
|
|
SyncLog * | log () const |
| Gets the synchronization log associated with this profile. More...
|
|
void | setLog (SyncLog *aLog) |
| Sets the synchronization log for this profile. More...
|
|
void | addResults (const SyncResults &aResults) |
| Adds synchronization results to the log. More...
|
|
SyncType | syncType () const |
| Gets the sync type of this profile. More...
|
|
void | setSyncType (SyncType aType) |
| Sets the sync type of this profile (manual/scheduled). More...
|
|
QStringList | storageBackendNames () const |
| Gets the names of storage backends used by this profile. More...
|
|
SyncSchedule | syncSchedule () const |
| Gets sync schedule settings. More...
|
|
void | setSyncSchedule (const SyncSchedule &aSchedule) |
| Sets sync schedule settings. More...
|
|
QList< Sync::InternetConnectionType > | internetConnectionTypes () const |
| Gets allowed connection types. More...
|
|
void | setInternetConnectionTypes (const QList< Sync::InternetConnectionType > &aTypes) |
| Sets the internet connection types on which this profile can be synced. More...
|
|
const Profile * | clientProfile () const |
| Get the first service sub-profile. More...
|
|
Profile * | clientProfile () |
| Get the first client sub-profile. More...
|
|
const Profile * | serverProfile () const |
| Get the first server sub-profile. More...
|
|
Profile * | serverProfile () |
| Get the first server sub-profile. More...
|
|
QList< const Profile * > | storageProfiles () const |
| Get the storage sub-profiles. More...
|
|
QList< Profile * > | storageProfilesNonConst () |
| Get the storage sub-profiles. More...
|
|
DestinationType | destinationType () const |
| Gets sync destination type (device or online). More...
|
|
SyncDirection | syncDirection () const |
| Gets sync direction (two way, to destination, from destination). More...
|
|
void | setSyncDirection (SyncDirection aDirection) |
| Sets sync direction. More...
|
|
ConflictResolutionPolicy | conflictResolutionPolicy () const |
| Gets conflict resolution policy. More...
|
|
void | setConflictResolutionPolicy (ConflictResolutionPolicy aPolicy) |
| Set conflict resolution policy. More...
|
|
QString | serviceName () const |
| Get the service name of profile. More...
|
|
quint32 | syncOnChangeAfter () const |
| If a profiles is interested in SOC, this gets the the SOC after time from that profile. The time should be in seconds and a value of 0 means sync immediately afer change. More...
|
|
bool | isSOCProfile () const |
| checks if a profile has SOC enabled More...
|
|
bool | hasRetries () const |
|
QList< quint32 > | retryIntervals () const |
|
CurrentSyncStatus | currentSyncStatus () const |
| Gives the current status of the sync as an enum value If the current status of ongoing syncs is required, check the d-bus API "runningSyncs" which returns the list of currently running sync sessions. The current sync sessions cannot be part of a profiel,. More...
|
|
| Profile () |
| Default Constructor.
|
|
| Profile (const QString &aName, const QString &aType) |
| Constructs a Profile object with given name and type. More...
|
|
| Profile (const QDomElement &aRoot) |
| Constructs a Profile object from XML. More...
|
|
| Profile (const Profile &aSource) |
| Copy constructor. More...
|
|
virtual | ~Profile () |
| Destructor.
|
|
QString | name () const |
| Gets the name of the profile. More...
|
|
QString | displayname () const |
| Gets the display name of the profile. More...
|
|
QString | type () const |
| Gets the type of the profile. More...
|
|
QString | toString () const |
| Outputs a XML representation of the profile to a string. More...
|
|
QString | key (const QString &aName, const QString &aDefault=QString()) const |
| Gets the value of the given key. More...
|
|
QMap< QString, QString > | allKeys () const |
| Gets all keys and their values. More...
|
|
QMap< QString, QString > | allNonStorageKeys () const |
| Gets all keys that are not related to storages. More...
|
|
bool | boolKey (const QString &aName, bool aDefault=false) const |
| Gets the value of the given boolean key. More...
|
|
QStringList | keyValues (const QString &aName) const |
| Gets the values of all keys with the given name. More...
|
|
QStringList | keyNames () const |
| Gets the names of all keys. More...
|
|
void | setKey (const QString &aName, const QString &aValue) |
| Sets the value of a key. More...
|
|
void | setKeyValues (const QString &aName, const QStringList &aValues) |
| Sets multiple values for a key. More...
|
|
void | setBoolKey (const QString &aName, bool aValue) |
| Sets the value of a boolean key. More...
|
|
void | removeKey (const QString &aName) |
| Removes a key from profile. All instances of the key are removed. More...
|
|
const ProfileField * | field (const QString &aName) const |
| Gets the field with the given name. More...
|
|
QList< const ProfileField * > | allFields () const |
| Gets all fields. More...
|
|
QList< const ProfileField * > | visibleFields () const |
| Gets all visible fields of the profile. More...
|
|
bool | isValid () const |
| Checks if the profile is valid. More...
|
|
QStringList | subProfileNames (const QString &aType="") const |
| Gets the names of all sub-profiles with the given type. More...
|
|
Profile * | subProfile (const QString &aName, const QString &aType="") |
| Gets a sub-profile with the given name and type. More...
|
|
const Profile * | subProfile (const QString &aName, const QString &aType="") const |
| const method for subProfile More...
|
|
const Profile * | subProfileByKeyValue (const QString &aKey, const QString &aValue, const QString &aType, bool aEnabledOnly) const |
| Gets a sub-profile by key value. More...
|
|
QList< Profile * > | allSubProfiles () |
| Gets all sub-profiles. More...
|
|
QList< const Profile * > | allSubProfiles () const |
| Gets all sub-profiles as const. More...
|
|
void | merge (const Profile &aSource) |
| Merges a profile to this profile. More...
|
|
bool | isLoaded () const |
| Checks if the profile is fully constructed by loading all sub-profiles from separate profile files. More...
|
|
void | setLoaded (bool aLoaded) |
| Sets if the profile is fully loaded. More...
|
|
virtual bool | isEnabled () const |
| Returns if the profile is enabled. More...
|
|
void | setEnabled (bool aEnabled) |
| Set is the profile is enabled. More...
|
|
bool | isHidden () const |
| Checks if the profile is hidden. More...
|
|
bool | isProtected () const |
| Checks if the profile is protected. More...
|
|
A top level synchronization profile.
SyncProfile is derived from Profile. It represents a top level synchronization profile, which contains all settings needed for a synchronization session. A SyncProfile typically has sub-profiles for the used service, client/server plug-in and storage plug-ins. SyncProfile extends the Profile inteface with functions for accessing information about synchronization schedule and history of finished synchronization sessions with this profile.