class CParserVCal : public CVersitParser |
A vCalendar parser.
Adds support for parsing vToDos and vEvents, and associated alarms (see CParserPropertyValueAlarm ) to the functionality of CVersitParser .
Adds a constructor and overrides CVersitParser::InternalizeL() for streams, ExternalizeL() for streams, RecognizeToken() , RecognizeEntityName() and MakeEntityL() .
The vCalendar 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.
Note: 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 | ExternalizeL ( RWriteStream &) |
IMPORT_C void | InternalizeL ( RReadStream &) |
IMPORT_C CParserVCal * | NewL () |
IMPORT_C TInt | RecognizeEntityName () |
IMPORT_C TUid | RecognizeToken (const TDesC8 &) |
Protected Member Functions | |
---|---|
IMPORT_C CVersitParser * | MakeEntityL ( TInt , HBufC *) |
Private Member Functions | |
---|---|
CParserVCal () | |
IMPORT_C void | Reserved1 () |
IMPORT_C void | Reserved2 () |
Inherited Enumerations | |
---|---|
CVersitParser:TCharCodes | |
CVersitParser:TVersitParserFlags |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | [virtual] |
Externalises a vCalendar entity (and all sub-entities) to a write stream.
Sets the entity name to KVersitVarTokenVCALENDAR if it hasn't already been set.
Adds a version property to the start of the current entity's array of properties if the entity supports this. (If there isn't an array of properties then one is made).
The presence of this function means that the standard templated operator<<() (defined in s32strm.h) is available to externalise objects of this class.
RWriteStream & aStream | Stream to which the vCalendar should be externalised. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Internalises a vCalendar entity from a read stream.
The presence of this function means that the standard templated operator>>() (defined in s32strm.h) is available to internalise objects of this class.
RReadStream & aStream | Stream from which the vCalendar should be internalised. |
IMPORT_C CVersitParser * | MakeEntityL | ( | TInt | aEntityUid, |
HBufC * | aEntityName | |||
) | [protected, virtual] |
IMPORT_C TInt | RecognizeEntityName | ( | ) | const [virtual] |
Tests the current value to see if it a vEvent or vTodo entity.
IMPORT_C TUid | RecognizeToken | ( | const TDesC8 & | aToken | ) | const [virtual] |
Returns a UID that identifies a specified token's type.
For example, if aToken contains the property name DAYLIGHT the function returns KVersitPropertyDaylightUid. If the token is not recognized as vCalendar-specific, the function calls CVersitParser::RecognizeToken() , which recognizes generic Versit tokens.
const TDesC8 & aToken | The token to be recognized. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.