WinRecurrenceSIF Class Reference
[Windows Adapter]

Rapresents a recurrence pattern object for Windows Clients, for SIF format. More...

#include <WinRecurrenceSIF.h>

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

List of all members.

Public Member Functions

 WinRecurrenceSIF ()
 Default Constructor.
 WinRecurrenceSIF (const wstring dataString, const wchar_t **fields)
 Constructor: fills propertyMap parsing the SIF rec pattern string.
 ~WinRecurrenceSIF ()
 Destructor.
void setSifFields (const wchar_t **fields)
 Sets the internal pointer sifFields with the passed array.
int parse (const wstring dataString)
 Parse a SIF string and fills the propertyMap.
wstring & toString ()
 Format and return a SIF rec pattern string from the propertyMap.
wstring adaptToSIFSpecs (const wstring &propName, const wstring &propValue)
 Transform the value of the specified property according to the SIF specifications.

Private Attributes

wstring sif
 Internal string formatted (SIF rec pattern).
const wchar_t ** sifFields
 NULL terminated array of SIF fields names.


Detailed Description

Rapresents a recurrence pattern object for Windows Clients, for SIF format.

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


Constructor & Destructor Documentation

WinRecurrenceSIF::WinRecurrenceSIF ( const wstring  dataString,
const wchar_t **  fields 
)

Constructor: fills propertyMap parsing the SIF rec pattern string.

Parameters:
dataString input SIF string to parse
fields the NULL terminated array of SIF fields


Member Function Documentation

wstring WinRecurrenceSIF::adaptToSIFSpecs ( const wstring &  propName,
const wstring &  propValue 
)

Transform the value of the specified property according to the SIF specifications.

The values are formatted following the vcard and icalendar specs that in some cases they are different from the SIF expectations. If there are no differences, propValue is returned.

Parameters:
propName [IN] the property name
propValue [IN] the property value
Returns:
the converted value if necessary

int WinRecurrenceSIF::parse ( const wstring  dataString  )  [virtual]

Parse a SIF string and fills the propertyMap.

Parameters:
dataString input SIF string to parse
Returns:
0 if no errors

Reimplemented from WinRecurrence.


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

Generated on Tue Apr 6 13:00:44 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1