CBCardEngine Class Reference

class CBCardEngine : public CBase

The business card engine is able to import and export vCards and Compact Business Cards to and from Phonebook.

Inherits from

Constructor & Destructor Documentation

CBCardEngine()

CBCardEngine ( ) [private, inline]

~CBCardEngine()

IMPORT_C ~CBCardEngine ( )

Destructor

Member Functions Documentation

ConstructL(CPbkContactEngine *)

void ConstructL ( CPbkContactEngine * aEngine ) [private]

Parameters

CPbkContactEngine * aEngine

ExportBusinessCardL(RWriteStream &, CPbkContactItem &)

IMPORT_C void ExportBusinessCardL ( RWriteStream & aDestStream,
CPbkContactItem & aSourceItem
)

Writes a vCard record with information from a Phonebook contact item. The main Export function.

Parameters

RWriteStream & aDestStream A stream where the vCard data is written to. The data written to the stream is not Committed by this method.
CPbkContactItem & aSourceItem Phonebook contact item where the information should be read from

GetByteFromStream(TUint8 &, RReadStream &)

TInt GetByteFromStream ( TUint8 & aByte,
RReadStream & aSourceStream
) [private]

Parameters

TUint8 & aByte
RReadStream & aSourceStream

GetLineFromStreamL(TDes &, RReadStream &)

TInt GetLineFromStreamL ( TDes & aBuf,
RReadStream & aSourceStream
) [private]

Parameters

TDes & aBuf
RReadStream & aSourceStream

ImportBusinessCardL(CPbkContactItem &, RReadStream &)

IMPORT_C void ImportBusinessCardL ( CPbkContactItem & aDestItem,
RReadStream & aSourceStream
)

Reads a vCard record from a stream into a Phonebook contact item.

Parameters

CPbkContactItem & aDestItem Phonebook contact item where the information should be written to. The item should be writable. The caller should commit the changes.
RReadStream & aSourceStream A stream where the vCard data is read from

ImportCompactBusinessCardL(CPbkContactItem &, RReadStream &)

IMPORT_C TBool ImportCompactBusinessCardL ( CPbkContactItem & aDestItem,
RReadStream & aSourceStream
)

Reads a Compact Business Card record from a stream into a Phonebook contact item.

Parameters

CPbkContactItem & aDestItem Phonebook contact item where the information must be written to. The item must be writable. The caller should commit the changes.
RReadStream & aSourceStream A stream where the Compact Business Card is read from

NewL(CPbkContactEngine *)

IMPORT_C CBCardEngine * NewL ( CPbkContactEngine * aEngine ) [static]

Creates a new instance of this class.

Parameters

CPbkContactEngine * aEngine An open Phonebook Engine object which CBCardEngine uses to import and export vCard data.

ProcessExportPropertyL(CParserVCard &, CPbkContactItem &, const CBCardExportProperty &)

void ProcessExportPropertyL ( CParserVCard & aParser,
CPbkContactItem & aSourceItem,
const CBCardExportProperty & aExportProperty
) [private]

Parameters

CParserVCard & aParser
CPbkContactItem & aSourceItem
const CBCardExportProperty & aExportProperty

SupportsFieldType(TPbkFieldId)

IMPORT_C TBool SupportsFieldType ( TPbkFieldId aFieldId )

Checks if given field is supported by the vCard format

Parameters

TPbkFieldId aFieldId Field id type

Member Data Documentation

CPbkContactEngine * iEngine

CPbkContactEngine * iEngine [private]

RPointerArray< CBCardExportProperty > iExportProperties

RPointerArray < CBCardExportProperty > iExportProperties [private]

CBCardFieldAction * iFieldAction

CBCardFieldAction * iFieldAction [private]

CBCardFieldUidMapping * iNameUidMap

CBCardFieldUidMapping * iNameUidMap [private]

HBufC * iPictureFileName

HBufC * iPictureFileName [private]

HBufC * iThumbnailFileName

HBufC * iThumbnailFileName [private]