#include <app/MVPbkContactFieldBinaryData.h>
class MVPbkContactFieldBinaryData : public MVPbkContactFieldData |
Public Member Functions | |
---|---|
virtual | ~MVPbkContactFieldBinaryData() |
pure virtual TPtrC8 | BinaryData() |
IMPORT_C MVPbkContactFieldBinaryData & | Cast(MVPbkContactFieldData &) |
IMPORT_C const MVPbkContactFieldBinaryData & | Cast(const MVPbkContactFieldData &) |
virtual TAny * | ContactFieldBinaryDataExtension(TUid) |
virtual TVPbkFieldStorageType | DataType() |
virtual TInt | MaxLength() |
pure virtual void | SetBinaryDataL(const TDesC8 &) |
Virtual Phonebook binary field data. This interface is used to manipulate binary contact field data.
TPtrC8 | BinaryData | ( | ) | const [pure virtual] |
Returns the binary data pointer.
Returns: Pointer to binary data.
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.
Parameter | Description |
---|---|
aFieldData | Data of the field. |
Returns: Casted inteface for the binary field data.
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.
Parameter | Description |
---|---|
aFieldData | Data of the field. |
Returns: Casted inteface for the binary 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 [inline, virtual] |
Returns maximum length of the field.
Returns: Maximum length of the field or KVPbkUnlimitedFieldLength if length is only limited by available memory.
void | SetBinaryDataL | ( | const TDesC8 & | aBinaryData | ) | [pure virtual] |
KErrOverflow | if (aBinaryData.Length() > MaxLength()) |
Parameter | Description |
---|---|
aBinaryData | Binary data to be set. |