CContactDateField Class Reference

#include <app/cntfldst.h>

class CContactDateField : public CContactFieldStorage, public CContactFieldStorage

Detailed Description

Provides access to the date/time value stored in a contact item field.

An object of this class can be retrieved using CContactItemField::DateTimeStorage().

Constructor & Destructor Documentation

CContactDateField ( )

CContactDateField()

Member Function Documentation

ExternalizeL ( RWriteStream & )

voidExternalizeL(RWriteStream &aStream)const [virtual]

Externalises the field data.

Parameters
aStreamWrite stream to which the contents of the field should be externalised.

InternalizeL ( RReadStream & )

voidInternalizeL(RReadStream &aStream)[virtual]

Internalises the field data.

Parameters
aStreamStream from which the the contents of the field should be internalised.

IsFull ( )

TBool IsFull()const [virtual]

Tests whether the field storage contains data.

Return Value
True if the field storage contains data, false if not.

RestoreL ( CStreamStore &, RReadStream & )

voidRestoreL(CStreamStore &aStore,
RReadStream &aStream
)[virtual]

Restores the field data.

Parameters
aStoreReference to the store from which the object is to be restored.
aStreamReference to the stream which should be passed to InternalizeL().

SetTime ( TTime )

IMPORT_C voidSetTime(TTimeaTime)

Sets the date/time stored in the field from a TTime value.

Parameters
aTimeThe field's new date/time value.

SetTime ( TDateTime )

IMPORT_C voidSetTime(TDateTimeaDateTime)

Sets the date/time stored in the field from a TDateTime value.

Parameters
aDateTimeThe field's new date/time value.

StoreL ( CStreamStore & )

TStreamId StoreL(CStreamStore &aStore)const [virtual]

Stores the field data.

Parameters
aStoreReference to the stream store to which the field data is written.
Return Value
The ID of the stream store.

Time ( )

IMPORT_C TTimeTime()const

Gets the date/time stored in the field as a TTime value.

Return Value
The field's date/time value.