MVPbkContactFieldUriData Class Reference

#include <app/MVPbkContactFieldUriData.h>

class MVPbkContactFieldUriData : public MVPbkContactFieldData

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

~MVPbkContactFieldUriData ( )

~MVPbkContactFieldUriData()[inline, virtual]

Destructor.

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

ParameterDescription
aFieldDataData of the field.

Returns: Casted inteface for the text field data.

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.

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.

Scheme ( )

TPtrC Scheme()const [pure virtual]

Returns the URI scheme.

Returns: Pointer to the URI scheme.

SetUriL ( const TDesC & )

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

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

SetUriL ( const TDesC &, const TDesC & )

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

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

Text ( )

TPtrC Text()const [pure virtual]

Returns the URI .

Returns: Pointer to the URI text.

Uri ( )

TPtrC Uri()const [pure virtual]

Returns the string data.

Returns: Pointer to the whole URI.