Location:
agmrepli.h
Link against: agnmodel.lib
TAgnReplicationData
Supported from 5.0
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:
a last changed date/time
a status (controls access rights to the entry / to-do list)
a synchronisation count (prevents synchronised entries or to-do lists from being fully deleted until they are no longer needed for synchronisation)
a flag which indicates whether or not the entry / to-do list has been marked as deleted but cannot be fully deleted until its synchronisation count is zero
Defined in TAgnReplicationData
:
Count()
, DecCount()
, EOpen
, EPrivate
, ERestricted
, ExternalizeL()
, HasBeenDeleted()
, IncCount()
, InternalizeL()
, LastChangedDate()
, Reset()
, SetCount()
, SetHasBeenDeleted()
, SetLastChangedDate()
, SetStatus()
, Status()
, TAgnReplicationData()
, TStatus
TAgnReplicationData();
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.
void SetCount(TUint aCount);
Sets the synchronisation count.
|
void SetHasBeenDeleted(TBool aHasBeenDeleted);
Sets the ‘has been deleted’ flag to the specified value.
|
void SetLastChangedDate();
Sets the last changed date / time to the current universal date / time.
void SetStatus(TStatus aStatus);
Sets the status for an agenda entry or to-do list.
|
void Reset();
Resets the replication data to the default values. For details, see the documentation of the constructor.
TBool HasBeenDeleted() const;
Tests whether the ‘has been deleted’ flag is set.
|
TTime LastChangedDate() const;
Gets the last changed date/time for the agenda entry or to-do list.
|
TStatus Status() const;
Gets the status for the agenda entry/to-do list.
|
void ExternalizeL(RWriteStream& aStream) const;
Externalises the synchronisation data to a write stream.
|
|
void InternalizeL(RReadStream& aStream);
Internalises the synchronisation data from a read stream. Panics if the status read in is not one of the three valid values.
|
TStatus
Status
|