![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
Applications that use this class will not work correctly on a version of EPOC earlier than ER5.
CBase |
Abstract: CBase behaviour |
CContactFieldStorage |
Abstract: Field data storage. |
cntfldst.h
cntmodel.lib
This class is used to store, set and retrieve the text contained in a contact item field.
An object of this class can be retrieved using CContactItemField::TextStorage().
void SetTextL(const TDesC& aText);
Set the text to be stored in the field. This function allocates a new HBufC descriptor, freeing any existing descriptor, and copies aText into it.
On return, the referenced descriptor aText can be safely discarded.
const TDesC& aText |
The new field text. |
void SetText(HBufC *aHbuf);
Set the text to be stored in the field. This function takes ownership of the descriptor aHbuf.
HBufC *aHbuf |
The new field text. |
TPtrC Text() const;
Retrieve the text stored in the field.
TPtrC |
Descriptor pointing to the location of the text string stored in the field. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |