iPhoneEvent Class Reference
[Apple_adapter]

Rapresents an event object for Apple Clients. More...

#include <iPhoneEvent.h>

Inheritance diagram for iPhoneEvent:
[legend]
Collaboration diagram for iPhoneEvent:
[legend]

List of all members.

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.


Detailed Description

Rapresents an event object for Apple Clients.

Member Function Documentation

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.

  • 'productID' MUST be "VCALENDAR"
  • 'version' is only checked to be the one supported (log info if wrong)

Parameters:
vo the VObject to check
Returns:
true if productID is correct

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.

Parameters:
dataString input vCalendar string to be parsed
Returns:
0 if no errors

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.

Returns:
true if timezone properties found

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.

Returns:
the vCalendar string formatted

Implements AppleEvent.


The documentation for this class was generated from the following file:

Generated on Tue Dec 21 15:16:20 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1