WinTask Class Reference
[Win_adapter]

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

#include <WinTask.h>

Inheritance diagram for WinTask:

Inheritance graph
[legend]
Collaboration diagram for WinTask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WinTask ()
 Default Constructor.
 WinTask (const wstring dataString)
 Constructor: fills propertyMap parsing the passed vCalendar string.
 ~WinTask ()
 Destructor.
virtual int parse (const wstring dataString)
 Parse a vCalendar string and fills the propertyMap.
virtual wstring & toString ()
 Format and return a vCalendar string from the propertyMap.
virtual WinRecurrencegetRecPattern ()
 Returns a pointer to the (internally owned) WinRecurrence.
long getCRC ()
 Return the crc value of the internal map with all values.

Detailed Description

Rapresents an event object for Windows Clients.

The object can be filled passing a vCalendar, or filling directly the map. Calling 'toString()' a vCalendar is formatted and returned.


Member Function Documentation

virtual int WinTask::parse ( const wstring  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 WinItem.

Reimplemented in WinTaskSIF.

virtual wstring& WinTask::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, reference to internal wstring

Implements WinItem.

Reimplemented in WinTaskSIF.

long WinTask::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 in the crc.

Reimplemented from WinItem.


The documentation for this class was generated from the following file:
Generated on Tue Jun 10 17:20:36 2008 for Funambol C++ Client Library by  doxygen 1.5.2