#include <WinTask.h>
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 WinRecurrence * | getRecPattern () |
Returns a pointer to the (internally owned) WinRecurrence. | |
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. | |
Private Attributes | |
wstring | vCalendar |
Internal string formatted (VCALENDAR). | |
WinRecurrence | recPattern |
The recurrence pattern object, containing recurring properties. |
The object can be filled passing a vCalendar, or filling directly the map. Calling 'toString()' a vCalendar is formatted and returned.
bool WinTask::checkVCalendarTypeAndVersion | ( | VObject * | vo | ) | [private] |
Checks the productID and version of VObject passed for vCalendar.
vo | the VObject to check |
long WinTask::getCRC | ( | ) | [virtual] |
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.
dataString | input vCalendar string to be parsed |
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.
Implements WinItem.
Reimplemented in WinTaskSIF.