Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <SyncMLClient.h>
Link against: smlclient.lib
This item is not part of the S60 5th Edition SDK

Class RSyncMLHistoryLog

class RSyncMLHistoryLog : public RSubSessionBase;

Description

Snapshot of history for a profile.

Derivation

Members

Defined in RSyncMLHistoryLog:

Inherited from RSubSessionBase:


Construction and destruction


RSyncMLHistoryLog()

IMPORT_C RSyncMLHistoryLog();

Description

Default constructor.

[Top]


Member functions


OpenL(RSyncMLSession &,TSmlProfileId)

IMPORT_C void OpenL(RSyncMLSession &, TSmlProfileId);

Pre-Condition

The session is open.

Description

Opens a snapshot of the History Log for the Profile of the specified ID.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlProfileId

The ID of the profile to retrieve History for. KSmlNullId retrieves History not associated with any specific Profile.

Leave codes

System

error codes.


SortEntries(CSyncMLHistoryEntry::TSortOrder)

IMPORT_C void SortEntries(CSyncMLHistoryEntry::TSortOrder);

Pre-Condition

The handle is open.

Description

Sorts the client-side list of cached entries into the specified order.

Parameters

CSyncMLHistoryEntry::TSortOrder

The sort order for the entries.


DeleteAllEntriesL()

Capability: WriteDeviceData

IMPORT_C void DeleteAllEntriesL();

Pre-Condition

The handle is open.

Description

Deletes all the History stored for this profile.


Profile()const

IMPORT_C TSmlProfileId Profile() const;

Pre-Condition

The handle is open.

Description

Returns the ID of the Profile that this History relates to.

Return value

TSmlProfileId

The Profile ID.


Count()const

IMPORT_C TInt Count() const;

Pre-Condition

The handle is open.

Description

Returns the number of entries stored for this Profile History.

Return value

TInt

The number of entries.


Entry(TInt)const

IMPORT_C const CSyncMLHistoryEntry& Entry(TInt aIndex) const;

Pre-Condition

The handle is open.

Description

Returns the entry at the specified index.

Parameters

TInt aIndex

The index of the entry to retrieve.

Return value

const CSyncMLHistoryEntry &

The number of entries.


operator[](TInt)const

inline const CSyncMLHistoryEntry& operator[](TInt aIndex) const;

Pre-Condition

The handle is open.

Description

Returns the entry at the specified index.

Parameters

TInt aIndex

The index of the entry to retrieve.

Return value

const CSyncMLHistoryEntry &

The entry at the specified index.


Close()

IMPORT_C void Close();

Description

Closes the History snapshot.