Location:
SyncMLHistory.h
Link against: smlclient.lib
class CSyncMLHistoryJob : public CSyncMLHistoryEntry;
This class holds the result of a session with a server.
CBase
- Base class for all classes to be instantiated on the heap
CSyncMLHistoryEntry
- Base class for a history log entry
CSyncMLHistoryJob
- This class holds the result of a session with a server
Defined in CSyncMLHistoryJob
:
DynamicCast()
, DynamicCast()
, ExternalizeL()
, FinishTime()
, InternalizeL()
, NewL()
, NewL()
, Profile()
, ResultCode()
, SetResult()
, TTaskInfo
, TaskAt()
, TaskById()
, TaskCount()
, TimeStamp()
, ~CSyncMLHistoryJob()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CSyncMLHistoryEntry
:
ESortByTime
,
ESortByType
,
EntryId()
,
EntryType()
,
Reserved()
,
TSortOrder
static IMPORT_C CSyncMLHistoryJob *NewL();
This method creates a new Job History entry representing a Sync Job.
|
|
static IMPORT_C CSyncMLHistoryJob *NewL(TSmlProfileId, const RArray< TSmlTaskId > &);
This method creates a new Job History entry representing a Sync Job.
|
|
|
static inline CSyncMLHistoryJob *DynamicCast(CSyncMLHistoryEntry *);
|
|
static inline const CSyncMLHistoryJob *DynamicCast(const CSyncMLHistoryEntry *);
|
|
virtual IMPORT_C void ExternalizeL(RWriteStream &) const;
This method writes the details associated with this entry to the specified stream.
|
virtual IMPORT_C TSmlProfileId Profile() const;
This method returns the ID of the Server Profile that this entry is associated with. Returns KSmlNullId if this entry is not associated with any Profile.
|
virtual IMPORT_C TTime TimeStamp() const;
This method returns the time stamp of this entry. i.e. when the Job started.
|
virtual IMPORT_C TInt ResultCode() const;
This method returns the result of the Sync Job.
|
IMPORT_C TTime FinishTime() const;
This method returns the time that the Sync Job completed.
|
IMPORT_C TInt TaskCount() const;
This method returns the number of tasks that were synchronised by the Job this entry represents.
|
IMPORT_C const TTaskInfo &TaskAt(TInt) const;
This method returns the task information at the specified index in the entry.
|
|
IMPORT_C TTaskInfo &TaskById(TSmlTaskId);
This method returns a modifiable reference to the information for the specified task.
|
|
|
IMPORT_C void SetResult(TTime aFinishTime, TInt aResultCode);
This method sets the finish time, and result code for the Sync Job entry.
|
class TTaskInfo;
This class identifies a sync task within the profile, and the result of the attempt to synchronise it.
Defined in CSyncMLHistoryJob::TTaskInfo
:
ExternalizeL()
, InternalizeL()
, TTaskInfo()
, iError
, iItemsAdded
, iItemsChanged
, iItemsDeleted
, iItemsFailed
, iItemsMoved
, iServerItemsAdded
, iServerItemsChanged
, iServerItemsDeleted
, iServerItemsFailed
, iServerItemsMoved
, iSyncType
, iTaskId
TTaskInfo()
IMPORT_C TTaskInfo();
Default constructor for TTaskInfo
.
InternalizeL()
IMPORT_C void InternalizeL(RReadStream &);
This method reads a TTaskInfo
object from a stream.
|
ExternalizeL()
IMPORT_C void ExternalizeL(RWriteStream &) const;
This method writes a TTaskInfo
object to a stream.
|
iTaskId
TSmlTaskId iTaskId;
Identifies the profile sync task
iError
TInt iError;
Indicates the synchronisation result
iItemsAdded
TInt iItemsAdded;
Indicates the number of items added to the db
iItemsChanged
TInt iItemsChanged;
Indicates the number of items modified in the db
iItemsDeleted
TInt iItemsDeleted;
Indicates the number of items deleted from the db
iItemsMoved
TInt iItemsMoved;
Indicates the number of items moved in the db
iItemsFailed
TInt iItemsFailed;
Indicates the number of items that failed synchronisation
iServerItemsAdded
TInt iServerItemsAdded;
Indicates the number of items added on the server
iServerItemsDeleted
TInt iServerItemsDeleted;
Indicates the number of items deleted on the server
iServerItemsMoved
TInt iServerItemsMoved;
Indicates the number of items moved on the server
iServerItemsChanged
TInt iServerItemsChanged;
Indicates the number of items changed on the server
iServerItemsFailed
TInt iServerItemsFailed;
Indicates the number of items failed synchronisation on the server
iSyncType
TSmlSyncType iSyncType;
Indicates the Synchronisation type used for the task.