|
||
class CContactTextField : public CContactFieldStorage;
Provides access to the text stored in a contact item field.
An object of this class can be retrieved using CContactItemField::TextStorage()
.
CBase
- Base class for all classes to be instantiated on the heap
CContactFieldStorage
- Abstract base class for the different types of contact field data storage
CContactTextField
- Provides access to the text stored in a contact item field
Defined in CContactTextField
:
CContactFieldStorage_Reserved1()
ExternalizeL()
Externalises the field dataInternalizeL()
Internalises the field dataIsFull()
Tests whether the field storage contains dataRestoreL()
Restores the field dataSetStandardTextArray()
Converts an array of text strings from plain text into Symbian editable text, appends them to a single descriptor, separating
them with the new line character, and sets this as the text which is stored in the fieldSetStandardTextL()
Converts a text string from plain text into Symbian editable text, and sets this as the text which is stored in the fieldSetText()
Sets the field textSetTextArray()
Sets the field text from a descriptor arraySetTextL()
Sets the field textStandardTextLC()
Converts a copy of the text stored in the field from Symbian editable text format into plain text and returns it as a pointer
descriptorStoreL()
Stores the field dataText()
Gets a copy of the text which is stored in the field~CContactTextField()
Deletes the text owned by the object, prior to its destructionInherited from CBase
:
Delete()
Deletes the specified objectExtension_()
Extension functionoperator new()
Initialises the object to binary zeroesIMPORT_C ~CContactTextField();
Deletes the text owned by the object, prior to its destruction.
virtual void InternalizeL(RReadStream &aStream);
Internalises the field data.
|
virtual void ExternalizeL(RWriteStream &aStream) const;
Externalises the field data.
|
virtual TStreamId StoreL(CStreamStore &aStore) const;
Stores the field data.
|
|
virtual void RestoreL(CStreamStore &aStore, RReadStream &aStream);
Restores the field data.
|
IMPORT_C void SetTextL(const TDesC &aText);
Sets the field text.
This function allocates a new HBufC descriptor, deleting any existing one, and copies the new text into it. The function can leave.
|
IMPORT_C void SetText(HBufC *aHbuf);
Sets the field text.
The text field object takes ownership of the specified descriptor. The function cannot leave.
|
IMPORT_C void SetTextArray(MDesC16Array *anArray);
Sets the field text 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.
|
IMPORT_C TPtrC Text() const;
Gets a copy of the text which is stored in the field.
|
virtual TBool IsFull() const;
Tests whether the field storage contains data.
|
IMPORT_C TPtrC StandardTextLC() const;
Converts a copy of the text stored in the field from Symbian editable text format into plain text and returns it as a pointer descriptor.
|
IMPORT_C void SetStandardTextL(const TDesC &aText);
Converts a text string from plain text into Symbian editable text, and sets this as the text which is stored in the field. The text is truncated to KCntMaxTextFieldLength characters if necessary.
|
IMPORT_C void SetStandardTextArray(MDesC16Array *anArray);
Converts an array of text strings from plain text into Symbian editable text, appends them to a single descriptor, separating them with the new line character, and sets this as the text which is stored in the field. Any existing field text is replaced. The text is truncated to KCntMaxTextFieldLength characters if necessary.
|
private: virtual IMPORT_C void CContactFieldStorage_Reserved1();