EPOC   SDK Home Glossary Indexes Previous Next Up

CContactDateField class


Contents


CContactDateField class — Storage for field date/time value

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behaviour.

CContactFieldStorage

Abstract: Field data storage.

Defined in

cntfldst.h

Link against

cntmodel.lib

Description

This class is used to store, set and retrieve the date/time value contained in a contact item field.

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


Set / get time


SetTime() — Set the date/time from a TTime

void SetTime(TTime atime);

Description

Set the date/time stored in the field from a TTime object.

Arguments

TTime atime

The field's new date/time value.


SetTime() — Set the date/time from a TDateTime

void SetTime(TDateTime aDateTime);

Description

Set the date/time stored in the field from a TDateTime object.

Arguments

TDateTime aDateTime

The field's new date/time value.


Time() — Get the date/time

TTime Time() const;

Description

Return the date/time stored in the field as a TTime.

Return value

TTime

The field's date/time value.

EPOC       SDK Home Glossary Indexes Previous Next Up