MVPbkContactFieldTextData Class Reference

#include <app/MVPbkContactFieldTextData.h>

class MVPbkContactFieldTextData : public MVPbkContactFieldData

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

~MVPbkContactFieldTextData ( )

~MVPbkContactFieldTextData()[inline, virtual]

Destructor.

Member Function 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.

ParameterDescription
aFieldDataData of the field.

Returns: Casted inteface for the text field data.

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.

ParameterDescription
aFieldDataData of the field.

Returns: Casted inteface for the text field data.

ContactFieldTextDataExtension ( TUid )

TAny *ContactFieldTextDataExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Returns: Extension point or NULL.

DataType ( )

TVPbkFieldStorageType DataType()const [inline, virtual]

Returns the derived data type id.

Returns: Contact field storage type.

MaxLength ( )

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.

SetTextL ( const TDesC & )

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

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

Text ( )

TPtrC Text()const [pure virtual]

Returns the string data.

Returns: Pointer to the text data.