Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: agmrepli.h
Link against: agnmodel.lib

Class TAgnReplicationData

TAgnReplicationData

Support

Supported from 5.0

Description

Stores the synchronisation data associated with each agenda entry and to-do list. This data is used when an EPOC agenda file is synchronised with a PC or other scheduler. The synchronisation data consists of:

Defined in TAgnReplicationData:
Count(), DecCount(), EOpen, EPrivate, ERestricted, ExternalizeL(), HasBeenDeleted(), IncCount(), InternalizeL(), LastChangedDate(), Reset(), SetCount(), SetHasBeenDeleted(), SetLastChangedDate(), SetStatus(), Status(), TAgnReplicationData(), TStatus


Construction


TAgnReplicationData()

TAgnReplicationData();

Description

The default C++ constructor constructs a replication data object, initialising the status to EOpen, the ‘has been deleted’ flag to EFalse, the synchronisation count to zero, and the last changed date / time to the current universal date / time.

[Top]


Set synchronisation data


SetCount()

void SetCount(TUint aCount);

Description

Sets the synchronisation count.

Parameters

TUint aCount

The count to be set.


IncCount()

void IncCount();

Description

Increments the synchronisation count.


DecCount()

void DecCount();

Description

Decrements the synchronisation count.


SetHasBeenDeleted()

void SetHasBeenDeleted(TBool aHasBeenDeleted);

Description

Sets the ‘has been deleted’ flag to the specified value.

Parameters

TBool aHasBeenDeleted

True to set the flag, False to clear the flag.


SetLastChangedDate()

void SetLastChangedDate();

Description

Sets the last changed date / time to the current universal date / time.


SetStatus()

void SetStatus(TStatus aStatus);

Description

Sets the status for an agenda entry or to-do list.

Parameters

TStatus aStatus

The status.


Reset()

void Reset();

Description

Resets the replication data to the default values. For details, see the documentation of the constructor.

[Top]


Get synchronisation data


Count()

TUint Count() const;

Description

Gets the synchronisation count.

Return value

TUint

The count.


HasBeenDeleted()

TBool HasBeenDeleted() const;

Description

Tests whether the ‘has been deleted’ flag is set.

Return value

TBool

True = the flag is set, otherwise False.


LastChangedDate()

TTime LastChangedDate() const;

Description

Gets the last changed date/time for the agenda entry or to-do list.

Return value

TTime

The last changed date/time.


Status()

TStatus Status() const;

Description

Gets the status for the agenda entry/to-do list.

Return value

TStatus

The status.

[Top]


Stream persistence


ExternalizeL()

void ExternalizeL(RWriteStream& aStream) const;

Description

Externalises the synchronisation data to a write stream.

Parameters

RWriteStream& aStream

The stream to which the object should be externalised.

Leave codes

 

Leaves with KErrCorrupt if the status is not one of the three valid values.


InternalizeL()

void InternalizeL(RReadStream& aStream);

Description

Internalises the synchronisation data from a read stream. Panics if the status read in is not one of the three valid values.

Parameters

RReadStream& aStream

The stream from which the object should be internalised.

[Top]


Enumerations


Enum TStatus

TStatus

Description

Status

EOpen

No restriction on access. The default.

EPrivate

Data is private (no access).

ERestricted

Data is confidential (restricted access).