#include <app/MVPbkContactFieldUriData.h>
class MVPbkContactFieldUriData : public MVPbkContactFieldData |
Public Member Functions | |
---|---|
virtual | ~MVPbkContactFieldUriData() |
IMPORT_C MVPbkContactFieldUriData & | Cast(MVPbkContactFieldData &) |
IMPORT_C const MVPbkContactFieldUriData & | Cast(const MVPbkContactFieldData &) |
virtual TAny * | ContactFieldTextDataExtension(TUid) |
virtual TVPbkFieldStorageType | DataType() |
pure virtual TInt | MaxLength() |
pure virtual TPtrC | Scheme() |
pure virtual void | SetUriL(const TDesC &) |
pure virtual void | SetUriL(const TDesC &, const TDesC &) |
pure virtual TPtrC | Text() |
pure virtual TPtrC | Uri() |
Virtual Phonebook Contact field URI data. This interface is used to manipulate URI contact field data.
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.
Parameter | Description |
---|---|
aFieldData | Data of the field. |
Returns: Casted inteface for the text field data.
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.
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 | SetUriL | ( | const TDesC & | aUri | ) | [pure virtual] |
KErrOverflow | if (aUri.Length() > MaxLength()) |
KErrOverflow | if (aScheme.Length() + aText.Length() + 1 > MaxLength()) |