class CPbapVCardExporterUtil : public CBase |
Converts contact and call history items to vCard 2.1 or vCard 3.0 objects
Public Member Functions | |
---|---|
~CPbapVCardExporterUtil() | |
void | AddIntraContactPropertiesL(const TContactItemId &, CArrayPtr< CParserProperty > *) |
void | ExportCallHistoryL(const CLogEvent &, RWriteStream &, TVCardVersion, TUint64) |
void | ExportContactL(TContactItemId, RWriteStream &, TVCardVersion, TUint64) |
void | ExportEmptyVCardL(RWriteStream &, TVCardVersion) |
TContactItemId | FindContactIdFromNumberL(const TDesC &) |
CPbapVCardExporterUtil * | NewL(CContactDatabase &, CPbapLogWrapper *) |
Private Member Functions | |
---|---|
CPbapVCardExporterUtil(CContactDatabase &, CPbapLogWrapper *) | |
CParserProperty * | CallDateTimePropertyL(const CLogEvent &, TVCardVersion) |
void | ConstructL() |
TBool | ContactExistsL(TContactItemId) |
CParserVCard * | CreateVCardParserLC(TVCardVersion) |
CParserProperty * | DesPropertyL(const TDesC8 &, const TDesC &) |
CParserProperty * | EmptyNamePropertyL() |
TPtrC8 | ParameterValueFromEventL(const CLogEvent &) |
Private Attributes | |
---|---|
CContactDatabase & | iDatabase |
TUint64 | iFilter |
TVCardVersion | iFormat |
const CLogEvent * | iLogEvent |
TContactItemId | iLogEventContactId |
CPbapLogWrapper * | iLogWrapper |
RTz | iTzClient |
CPbapVCardExporterUtil | ( | CContactDatabase & | aDatabase, |
CPbapLogWrapper * | aLogWrapper | ||
) | [private] |
CContactDatabase & aDatabase | |
CPbapLogWrapper * aLogWrapper |
void | AddIntraContactPropertiesL | ( | 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.
const TContactItemId & aContactId | |
CArrayPtr< CParserProperty > * aPropertyList |
CParserProperty * | CallDateTimePropertyL | ( | const CLogEvent & | aLogEvent, |
TVCardVersion | aFormat | |||
) | [private] |
const CLogEvent & aLogEvent | |
TVCardVersion aFormat |
TBool | ContactExistsL | ( | TContactItemId | aContactId | ) | [private] |
TContactItemId aContactId |
CParserVCard * | CreateVCardParserLC | ( | TVCardVersion | aFormat | ) | [private] |
TVCardVersion aFormat |
CParserProperty * | DesPropertyL | ( | const TDesC8 & | aToken, |
const TDesC & | aDes | |||
) | [private] |
void | ExportCallHistoryL | ( | const CLogEvent & | aEvent, |
RWriteStream & | aWriteStream, | |||
TVCardVersion | aFormat, | |||
TUint64 | aFilter | |||
) |
Export log engine event as a vCard.
const CLogEvent & aEvent | Log engine event to be exported |
RWriteStream & aWriteStream | Stream to externalize vCard data to |
TVCardVersion aFormat | Version of vCard specification 2.1 or 3.0 |
TUint64 aFilter | Defines properties to be exported |
void | ExportContactL | ( | TContactItemId | aContactId, |
RWriteStream & | aWriteStream, | |||
TVCardVersion | aFormat, | |||
TUint64 | aFilter | |||
) |
Export a contact as vCard.
TContactItemId aContactId | Contact 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 & aWriteStream | Stream to externalize vCard data to |
TVCardVersion aFormat | Version of vCard specification 2.1 or 3.0 |
TUint64 aFilter | Defines properties to be exported |
void | ExportEmptyVCardL | ( | RWriteStream & | aWriteStream, |
TVCardVersion | aFormat | |||
) |
Writes a vCard to the stream containing only the mandatory properties defined in the PBAP specification with all properties set to empty (null) values
RWriteStream & aWriteStream | |
TVCardVersion aFormat |
TContactItemId | FindContactIdFromNumberL | ( | const TDesC & | aNumber | ) |
const TDesC & aNumber |
CPbapVCardExporterUtil * | NewL | ( | CContactDatabase & | aDatabase, |
CPbapLogWrapper * | aLogWrapper | |||
) | [static] |
CContactDatabase & aDatabase | |
CPbapLogWrapper * aLogWrapper |
TPtrC8 | ParameterValueFromEventL | ( | const CLogEvent & | aLogEvent | ) | [private] |
const CLogEvent & aLogEvent |