CPbapVCardExporterUtil Class Reference

class CPbapVCardExporterUtil : public CBase

Converts contact and call history items to vCard 2.1 or vCard 3.0 objects

Inherits from

  • CPbapVCardExporterUtil

Constructor & Destructor Documentation

CPbapVCardExporterUtil(CContactDatabase &, CPbapLogWrapper *)

CPbapVCardExporterUtil(CContactDatabase &aDatabase,
CPbapLogWrapper *aLogWrapper
)[private]

Parameters

CContactDatabase & aDatabase
CPbapLogWrapper * aLogWrapper

~CPbapVCardExporterUtil()

~CPbapVCardExporterUtil()

Member Functions Documentation

AddIntraContactPropertiesL(const TContactItemId &, CArrayPtr< CParserProperty > *)

voidAddIntraContactPropertiesL(const TContactItemId &aContactId,
CArrayPtr< CParserProperty > *aPropertyList
)

PBAP clients are supposed to provide any information regarding the contact item represented by aContactId. This information should be in form of standard vCard property, all such properties should be appended to the array aPropertyList.

Parameters

const TContactItemId & aContactId
CArrayPtr< CParserProperty > * aPropertyList

CallDateTimePropertyL(const CLogEvent &, TVCardVersion)

CParserProperty *CallDateTimePropertyL(const CLogEvent &aLogEvent,
TVCardVersionaFormat
)[private]

Parameters

const CLogEvent & aLogEvent
TVCardVersion aFormat

ConstructL()

voidConstructL()[private]

ContactExistsL(TContactItemId)

TBool ContactExistsL(TContactItemIdaContactId)[private]

Parameters

TContactItemId aContactId

CreateVCardParserLC(TVCardVersion)

CParserVCard *CreateVCardParserLC(TVCardVersionaFormat)[private]

Parameters

TVCardVersion aFormat

DesPropertyL(const TDesC8 &, const TDesC &)

CParserProperty *DesPropertyL(const TDesC8 &aToken,
const TDesC &aDes
)[private]

Parameters

const TDesC8 & aToken
const TDesC & aDes

EmptyNamePropertyL()

CParserProperty *EmptyNamePropertyL()[private]

ExportCallHistoryL(const CLogEvent &, RWriteStream &, TVCardVersion, TUint64)

voidExportCallHistoryL(const CLogEvent &aEvent,
RWriteStream &aWriteStream,
TVCardVersionaFormat,
TUint64aFilter
)

Export log engine event as a vCard.

Parameters

const CLogEvent & aEventLog engine event to be exported
RWriteStream & aWriteStreamStream to externalize vCard data to
TVCardVersion aFormatVersion of vCard specification 2.1 or 3.0
TUint64 aFilterDefines properties to be exported

ExportContactL(TContactItemId, RWriteStream &, TVCardVersion, TUint64)

voidExportContactL(TContactItemIdaContactId,
RWriteStream &aWriteStream,
TVCardVersionaFormat,
TUint64aFilter
)

Export a contact as vCard.

Parameters

TContactItemId aContactIdContact item ID to export. If this value is set to KNullContactId an empty vCard containing only the mandatory properties defined in the PBAP specification will be exported
RWriteStream & aWriteStreamStream to externalize vCard data to
TVCardVersion aFormatVersion of vCard specification 2.1 or 3.0
TUint64 aFilterDefines properties to be exported

ExportEmptyVCardL(RWriteStream &, TVCardVersion)

voidExportEmptyVCardL(RWriteStream &aWriteStream,
TVCardVersionaFormat
)

Writes a vCard to the stream containing only the mandatory properties defined in the PBAP specification with all properties set to empty (null) values

Parameters

RWriteStream & aWriteStream
TVCardVersion aFormat

FindContactIdFromNumberL(const TDesC &)

TContactItemId FindContactIdFromNumberL(const TDesC &aNumber)

Parameters

const TDesC & aNumber

NewL(CContactDatabase &, CPbapLogWrapper *)

CPbapVCardExporterUtil *NewL(CContactDatabase &aDatabase,
CPbapLogWrapper *aLogWrapper
)[static]

Parameters

CContactDatabase & aDatabase
CPbapLogWrapper * aLogWrapper

ParameterValueFromEventL(const CLogEvent &)

TPtrC8 ParameterValueFromEventL(const CLogEvent &aLogEvent)[private]

Parameters

const CLogEvent & aLogEvent

Member Data Documentation

CContactDatabase & iDatabase

CContactDatabase &iDatabase[private]

TUint64 iFilter

TUint64 iFilter[private]

TVCardVersion iFormat

TVCardVersion iFormat[private]

const CLogEvent * iLogEvent

const CLogEvent *iLogEvent[private]

TContactItemId iLogEventContactId

TContactItemId iLogEventContactId[private]

CPbapLogWrapper * iLogWrapper

CPbapLogWrapper *iLogWrapper[private]

RTz iTzClient

RTz iTzClient[private]