MVPbkContactFieldTextData Class Reference

class MVPbkContactFieldTextData : public MVPbkContactFieldData

Virtual Phonebook Contact field text data. This interface is used to manipulate text contact field data.

Inherits from

Constructor & Destructor Documentation

~MVPbkContactFieldTextData()

~MVPbkContactFieldTextData ( ) [inline, virtual]

Destructor.

Member Functions Documentation

Cast(MVPbkContactFieldData &)

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.

Parameters

MVPbkContactFieldData & aFieldData Data of the field.

Cast(const MVPbkContactFieldData &)

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.

Parameters

const MVPbkContactFieldData & aFieldData Data of the field.

ContactFieldTextDataExtension(TUid)

TAny * ContactFieldTextDataExtension ( TUid ) [inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid

DataType()

TVPbkFieldStorageType DataType ( ) const [inline, virtual]

Returns the derived data type id.

MaxLength()

TInt MaxLength ( ) const [pure virtual]

Returns maximum length of the field.

SetTextL(const TDesC &)

void SetTextL ( const TDesC & aText ) [pure virtual]
Sets the string data.
Exceptions
KErrOverflow

if (aText.Length() > MaxLength() )

Parameters

const TDesC & aText

Text()

TPtrC Text ( ) const [pure virtual]

Returns the string data.