23 #ifndef SYNCRESULTS_H_2
24 #define SYNCRESULTS_H_2
28 #include "TargetResults.h"
45 DatabaseResults() : iLocalItemsAdded( 0 ), iLocalItemsModified( 0 ), iLocalItemsDeleted( 0 ),
46 iRemoteItemsAdded( 0 ), iRemoteItemsModified( 0 ), iRemoteItemsDeleted( 0 ) { }
50 class SyncResultsPrivate;
67 SYNC_RESULT_INVALID = -1,
68 SYNC_RESULT_SUCCESS = 0,
88 AUTHENTICATION_FAILURE,
95 INVALID_SYNCML_MESSAGE,
96 UNSUPPORTED_SYNC_TYPE,
97 UNSUPPORTED_STORAGE_TYPE,
101 LOW_BATTERY_POWER = 601,
127 SyncResults(QDateTime aTime,
int aMajorCode,
int aMinorCode);
152 QDomElement
toXml(QDomDocument &aDoc)
const;
234 SyncResultsPrivate *d_ptr;
236 #ifdef SYNCFW_UNIT_TESTS
237 friend class ClientThreadTest;
243 #endif // SYNCRESULTS_H_2
void setMajorCode(int aMajorCode)
Sets the result code.
Definition: SyncResults.cpp:187
int iRemoteItemsDeleted
Definition: SyncResults.h:43
int iLocalItemsDeleted
Definition: SyncResults.h:39
QList< TargetResults > targetResults() const
Gets the results of all targets.
Definition: SyncResults.cpp:167
int majorCode() const
Gets the result code.
Definition: SyncResults.cpp:182
QDateTime syncTime() const
Gets the sync time.
Definition: SyncResults.cpp:177
void setScheduled(bool aScheduled)
Sets if the results are from a scheduled sync.
Definition: SyncResults.cpp:219
void addTargetResults(const TargetResults &aResults)
Adds target results to this object.
Definition: SyncResults.cpp:172
Contains information about a completed synchronization session.
Definition: SyncResults.h:58
int iLocalItemsModified
Definition: SyncResults.h:38
QString getTargetId() const
Gets the remote target Id.
Definition: SyncResults.cpp:209
MinorCode
enum value
Definition: SyncResults.h:77
bool isScheduled() const
Checks if the results are from a scheduled sync.
Definition: SyncResults.cpp:224
int iRemoteItemsModified
Definition: SyncResults.h:42
Definition: AccountsHelper.h:31
~SyncResults()
Destructor.
Definition: SyncResults.cpp:119
bool operator<(const SyncResults &aOther) const
Compares two results objects by sync time.
Definition: SyncResults.cpp:214
Sync results for one target.
Definition: TargetResults.h:59
Definition: SyncResults.h:35
SyncResults()
Constructs an empty sync results object.
Definition: SyncResults.cpp:85
SyncResults & operator=(const SyncResults &aRhs)
Assignment operator.
Definition: SyncResults.cpp:125
QDomElement toXml(QDomDocument &aDoc) const
Exports the sync results to XML.
Definition: SyncResults.cpp:136
MajorCode
enum value
Definition: SyncResults.h:66
int iRemoteItemsAdded
Definition: SyncResults.h:41
void setTargetId(const QString &aTargetId)
Sets the remote target Id.
Definition: SyncResults.cpp:204
QString toString() const
Exports the sync results to QString.
Definition: SyncResults.cpp:153
int iLocalItemsAdded
Definition: SyncResults.h:37
int minorCode() const
Gets the failed reason.
Definition: SyncResults.cpp:193
Definition: SyncBackupAdaptor.h:40
void setMinorCode(int aMinorCode)
Sets the failed Reason.
Definition: SyncResults.cpp:198