Location:
cntfldst.h
Link against: cntmodel.lib
CContactTextField
Supported from 5.0
Sets and gets the text stored in a contact item field. An object of
this class can be retrieved using
CContactItemField::TextStorage()
.
|
Defined in CContactTextField
:
SetStandardTextArray()
, SetStandardTextL()
, SetText()
, SetTextArray()
, SetTextL()
, StandardTextLC()
, Text()
, ~CContactTextField()
Inherited from CBase
:
operator new()
Inherited from CContactFieldStorage
:
ExternalizeL()
,
InternalizeL()
,
IsFull()
,
RestoreL()
,
StoreL()
void SetTextL(const TDesC& aText);
Sets the text which is stored in the field. This function
allocates a new HBufC
descriptor, freeing any existing descriptor,
and copies the new text into it.
|
void SetText(HBufC *aHbuf);
Sets the text which is stored in the field. The text field object takes ownership of the specified descriptor.
|
void SetTextArray(MDesCArray* anArray);
Sets the text which is stored in the field from a descriptor array.
Each descriptor in the array is appended to the text field storage. They are
separated by paragraph delimiters
(CEditableText::EParagraphDelimiter
). Any existing text is
replaced.
|
TPtrC Text() const;
Gets a copy of the text which is stored in the field.
|
TPtrC StandardTextLC() const;
Supported from 5.1
Converts a copy of the text stored in the field from EPOC editable text format into plain text and returns it as a pointer descriptor.
|
void SetStandardTextL(const TDesC& aText);
Supported from 5.1
Converts a text string from plain text into EPOC editable text, and sets this as the text which is stored in the field.
|
void SetStandardTextArray(MDesCArray* anArray);
Supported from 5.1
Converts an array of text strings from plain text into EPOC editable text, appends them to a single descriptor, separating them with a new line character, and sets this as the text which is stored in the field. Any existing field text is replaced.
|