MVPbkContactFieldUriData Class Reference

class MVPbkContactFieldUriData : public MVPbkContactFieldData

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

Inherits from

Constructor & Destructor Documentation

~MVPbkContactFieldUriData()

~MVPbkContactFieldUriData ( ) [inline, virtual]

Destructor.

Member Functions Documentation

Cast(MVPbkContactFieldData &)

IMPORT_C MVPbkContactFieldUriData & Cast ( MVPbkContactFieldData & aFieldData ) [static]

Casts MVPbkContactFieldData to this interface.

aFieldData.DataType() == EVPbkFieldStorageTypeUri 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 MVPbkContactFieldUriData & 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.

Scheme()

TPtrC Scheme ( ) const [pure virtual]

Returns the URI scheme.

SetUriL(const TDesC &)

void SetUriL ( const TDesC & aUri ) [pure virtual]
Sets the URI data.
Exceptions
KErrOverflow

if (aUri.Length() > MaxLength() )

Parameters

const TDesC & aUri

SetUriL(const TDesC &, const TDesC &)

void SetUriL ( const TDesC & aScheme,
const TDesC & aText
) [pure virtual]
Sets the URI data.
Exceptions
KErrOverflow

if (aScheme.Length() + aText.Length() + 1 > MaxLength() )

Parameters

const TDesC & aScheme
const TDesC & aText

Text()

TPtrC Text ( ) const [pure virtual]

Returns the URI .

Uri()

TPtrC Uri ( ) const [pure virtual]

Returns the string data.