Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: CNTFLDST.H
Link against: cntmodel.lib

Class CContactDateField

class CContactDateField : public CContactFieldStorage;

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().

Derivation

Members

Defined in CContactDateField:
CContactFieldStorage_Reserved1(), ExternalizeL(), InternalizeL(), IsFull(), RestoreL(), SetTime(), SetTime(), StoreL(), Time()

Inherited from CBase:
Delete(), Extension_(), operator new()


Member functions


StoreL()

virtual TStreamId StoreL(CStreamStore &aStore) const;

Description

Stores the field data.

Parameters

CStreamStore &aStore

Reference to the stream store to which the field data is written.

Return value

TStreamId

The ID of the stream store.


RestoreL()

virtual void RestoreL(CStreamStore &aStore, RReadStream &aStream);

Description

Restores the field data.

Parameters

CStreamStore &aStore

Reference to the store from which the object is to be restored.

RReadStream &aStream

Reference to the stream which should be passed to InternalizeL().


SetTime()

IMPORT_C void SetTime(TTime aTime);

Description

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

Parameters

TTime aTime

The field's new date/time value.


SetTime()

IMPORT_C void SetTime(TDateTime aDateTime);

Description

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

Parameters

TDateTime aDateTime

The field's new date/time value.


Time()

IMPORT_C TTime Time() const;

Description

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

Return value

TTime

The field's date/time value.


InternalizeL()

virtual void InternalizeL(RReadStream &aStream);

Description

Internalises the field data.

Parameters

RReadStream &aStream

Stream from which the the contents of the field should be internalised.


ExternalizeL()

virtual void ExternalizeL(RWriteStream &aStream) const;

Description

Externalises the field data.

Parameters

RWriteStream &aStream

Write stream to which the contents of the field should be externalised.


IsFull()

virtual TBool IsFull() const;

Description

Tests whether the field storage contains data.

Return value

TBool

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


CContactFieldStorage_Reserved1()

private: virtual IMPORT_C void CContactFieldStorage_Reserved1();

Description