#include <app/MVPbkContactFieldTextData.h>
| class MVPbkContactFieldTextData : public MVPbkContactFieldData |
| Public Member Functions | |
|---|---|
| virtual | ~MVPbkContactFieldTextData() |
| IMPORT_C MVPbkContactFieldTextData & | Cast(MVPbkContactFieldData &) |
| IMPORT_C const MVPbkContactFieldTextData & | Cast(const MVPbkContactFieldData &) |
| virtual TAny * | ContactFieldTextDataExtension(TUid) |
| virtual TVPbkFieldStorageType | DataType() |
| pure virtual TInt | MaxLength() |
| pure virtual void | SetTextL(const TDesC &) |
| pure virtual TPtrC | Text() |
Virtual Phonebook Contact field text data. This interface is used to manipulate text contact field data.
| IMPORT_C MVPbkContactFieldTextData & | Cast | ( | MVPbkContactFieldData & | aFieldData | ) | [static] |
Casts MVPbkContactFieldData to this interface.
aFieldData.DataType() == EVPbkFieldStorageTypeText VPbkError::Panic(VPbkError::EFieldDataTypeMismatch) is raised if the precondition does not hold.
| Parameter | Description |
|---|---|
| aFieldData | Data of the field. |
Returns: Casted inteface for the text field data.
| IMPORT_C const MVPbkContactFieldTextData & | Cast | ( | const MVPbkContactFieldData & | aFieldData | ) | [static] |
Casts const MVPbkContactFieldData to this interface.
aFieldData.DataType() == EVPbkFieldStorageTypeText VPbkError::Panic(VPbkError::EFieldDataTypeMismatch) is raised if the precondition does not hold.
| Parameter | Description |
|---|---|
| aFieldData | Data of the field. |
Returns: Casted inteface for the text field data.
| TVPbkFieldStorageType | DataType | ( | ) | const [inline, virtual] |
Reimplemented from MVPbkContactFieldData::DataType()const
Returns the derived data type id.
Returns: Contact field storage type.
| TInt | MaxLength | ( | ) | const [pure virtual] |
Returns maximum length of the field.
Returns: Maximum length of the field or KVPbkUnlimitedFieldLength if length is only limited by available memory.
| void | SetTextL | ( | const TDesC & | aText | ) | [pure virtual] |
| KErrOverflow | if (aText.Length() > MaxLength()) |