class CParserVCard : public CVersitParser |
A vCard parser.
Adds support for property groups (see CParserGroupedProperty) and agents (see CParserPropertyValueAgent) to the functionality of CVersitParser.
Provides a constructor and overrides CVersitParser::InternalizeL(), ExternalizeL(), RecognizeToken(), ConvertAllPropertyDateTimesToMachineLocalL(), ParsePropertyL() and MakePropertyValueL().
The vCard data is read from or written to a stream or file, using the InternalizeL() and ExternalizeL() functions. Most users of this class will only need to use these functions.
If you are sequentially creating and destroying multiple parsers, a major performance improvement may be achieved by using thread local storage to store an instance of CVersitUnicodeUtils which persists and can be used by all of the parsers.
See CVersitTlsData for more information.
Public Member Functions | |
---|---|
IMPORT_C void | ConvertAllPropertyDateTimesToMachineLocalL(const TTimeIntervalSeconds &, const CVersitDaylight *) |
IMPORT_C void | ConvertDateTimesToMachineLocalAndDeleteTZL() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C CArrayPtr< CParserProperty > * | GroupOfPropertiesL(const TDesC8 &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C CParserVCard * | NewL() |
CParserVCard * | NewL(TBool) |
IMPORT_C TUid | RecognizeToken(const TDesC8 &) |
Protected Member Functions | |
---|---|
CParserVCard() | |
CParserVCard(TBool) | |
IMPORT_C CDesC8Array * | GetGroupNamesL(TPtr8 &) |
IMPORT_C CParserPropertyValue * | MakePropertyValueAgentL(TPtr16) |
IMPORT_C CParserPropertyValue * | MakePropertyValueL(const TUid &, HBufC16 *&) |
IMPORT_C CParserPropertyValue * | MakePropertyValueSoundL(HBufC16 *&) |
IMPORT_C void | ParsePropertyL() |
Private Member Functions | |
---|---|
IMPORT_C void | Reserved1() |
IMPORT_C void | Reserved2() |
Inherited Enumerations | |
---|---|
CVersitParser:TCharCodes | |
CVersitParser:TVersitParserFlags |
Private Attributes | |
---|---|
TBool | iParsingAgent |
IMPORT_C void | ConvertAllPropertyDateTimesToMachineLocalL | ( | const TTimeIntervalSeconds & | aIncrement, |
const CVersitDaylight * | aDaylight | |||
) | [virtual] |
const TTimeIntervalSeconds & aIncrement | |
const CVersitDaylight * aDaylight |
IMPORT_C void | ConvertDateTimesToMachineLocalAndDeleteTZL | ( | ) |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | [virtual] |
RWriteStream & aStream |
IMPORT_C CDesC8Array * | GetGroupNamesL | ( | TPtr8 & | aGroupsAndName | ) | [protected] |
TPtr8 & aGroupsAndName |
IMPORT_C CArrayPtr< CParserProperty > * | GroupOfPropertiesL | ( | const TDesC8 & | aName | ) | const |
const TDesC8 & aName |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
RReadStream & aStream |
IMPORT_C CParserPropertyValue * | MakePropertyValueAgentL | ( | TPtr16 | aValue | ) | [protected, virtual] |
TPtr16 aValue |
IMPORT_C CParserPropertyValue * | MakePropertyValueL | ( | const TUid & | aPropertyUid, |
HBufC16 *& | aValue | |||
) | [protected, virtual] |
IMPORT_C CParserPropertyValue * | MakePropertyValueSoundL | ( | HBufC16 *& | aValue | ) | [protected] |
HBufC16 *& aValue |
IMPORT_C TUid | RecognizeToken | ( | const TDesC8 & | aToken | ) | const [virtual] |
const TDesC8 & aToken |