MVPbkContactFieldBinaryData Class Reference

#include <app/MVPbkContactFieldBinaryData.h>

class MVPbkContactFieldBinaryData : public MVPbkContactFieldData

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

~MVPbkContactFieldBinaryData ( )

~MVPbkContactFieldBinaryData()[inline, virtual]

Destructor.

Member Function Documentation

BinaryData ( )

TPtrC8 BinaryData()const [pure virtual]

Returns the binary data pointer.

Returns: Pointer to binary data.

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.

ParameterDescription
aFieldDataData of the field.

Returns: Casted inteface for the binary field data.

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.

ParameterDescription
aFieldDataData of the field.

Returns: Casted inteface for the binary field data.

ContactFieldBinaryDataExtension ( TUid )

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

Returns maximum length of the field.

Returns: Maximum length of the field or KVPbkUnlimitedFieldLength if length is only limited by available memory.

SetBinaryDataL ( const TDesC8 & )

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

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

ParameterDescription
aBinaryDataBinary data to be set.