#include <iPhoneEvent.h>
Public Member Functions | |
iPhoneEvent () | |
Default Constructor. | |
iPhoneEvent (const StringBuffer &dataString) | |
Constructor: fills propertyMap parsing the passed vCalendar string. | |
~iPhoneEvent () | |
Destructor. | |
virtual int | parse (const StringBuffer &dataString) |
Parse a vCalendar string and fills the propertyMap. | |
virtual StringBuffer | toString () |
Format and return a vCalendar string from the propertyMap. | |
long | getCRC () |
Return the crc value of the internal map with all values. | |
Private Member Functions | |
bool | checkVCalendarTypeAndVersion (VObject *vo) |
Checks the productID and version of VObject passed for vCalendar. | |
void | addTimezone (VObject *vo) |
Adds the timezone properties (TZ and DAYLIGHT) into the passed VObject. | |
bool | parseTimezone (VObject *vo) |
Parse the timezone properties (TZ and DAYLIGHT) from the passed VObject and fills the 'tzInfo' timezone structure. |
void iPhoneEvent::addTimezone | ( | VObject * | vo | ) | [private] |
Adds the timezone properties (TZ and DAYLIGHT) into the passed VObject.
Used from Client to Server. Example of formatted vProperties added: TZ:-0800 DAYLIGHT:TRUE;-0900;20080406T020000;20081026T020000;Pacific Standard Time;Pacific Daylight Time DAYLIGHT:TRUE;-0900;20090405T020000;20091025T020000;Pacific Standard Time;Pacific Daylight Time When using timezone properties, recurrence data is in local time.
bool iPhoneEvent::checkVCalendarTypeAndVersion | ( | VObject * | vo | ) | [private] |
Checks the productID and version of VObject passed for vCalendar.
vo | the VObject to check |
long iPhoneEvent::getCRC | ( | ) | [virtual] |
Return the crc value of the internal map with all values.
It uses only the values of the map not the key. Overrides method of WinItem, to include recurring properties and event exceptions in the crc.
Reimplemented from AppleEvent.
virtual int iPhoneEvent::parse | ( | const StringBuffer & | dataString | ) | [virtual] |
Parse a vCalendar string and fills the propertyMap.
The map is cleared and will contain only found properties at the end of the parsing.
dataString | input vCalendar string to be parsed |
Implements AppleEvent.
bool iPhoneEvent::parseTimezone | ( | VObject * | vo | ) | [private] |
Parse the timezone properties (TZ and DAYLIGHT) from the passed VObject and fills the 'tzInfo' timezone structure.
Used from Server to Client. When using timezone properties, recurrence data is expected in local time.
virtual StringBuffer iPhoneEvent::toString | ( | ) | [virtual] |
Format and return a vCalendar string from the propertyMap.
Not supported properties are ignored and so not formatted as they don't have a correspondence in propertyMap.
Implements AppleEvent.