MVPbkContactFieldBinaryData Class Reference

class MVPbkContactFieldBinaryData : public MVPbkContactFieldData

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

Inherits from

Constructor & Destructor Documentation

~MVPbkContactFieldBinaryData()

~MVPbkContactFieldBinaryData ( ) [inline, virtual]

Destructor.

Member Functions Documentation

BinaryData()

TPtrC8 BinaryData ( ) const [pure virtual]

Returns the binary data pointer.

Cast(MVPbkContactFieldData &)

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

Casts MVPbkContactFieldData to this interface.

aFieldData.DataType() == EVPbkFieldStorageTypeBinary 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 MVPbkContactFieldBinaryData & Cast ( const MVPbkContactFieldData & aFieldData ) [static]

Casts const MVPbkContactFieldData to this interface.

aFieldData.DataType() == EVPbkFieldStorageTypeBinary VPbkError::Panic(VPbkError::EFieldDataTypeMismatch) is raised if the precondition does not hold.

Parameters

const MVPbkContactFieldData & aFieldData Data of the field.

ContactFieldBinaryDataExtension(TUid)

TAny * ContactFieldBinaryDataExtension ( 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 [inline, virtual]

Returns maximum length of the field.

SetBinaryDataL(const TDesC8 &)

void SetBinaryDataL ( const TDesC8 & aBinaryData ) [pure virtual]
Sets the binary data.
Exceptions
KErrOverflow

if (aBinaryData.Length() > MaxLength() )

Parameters

const TDesC8 & aBinaryData Binary data to be set.