WinRecurrenceSIF Class Reference
[Win_adapter]

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

#include <WinRecurrenceSIF.h>

Inheritance diagram for WinRecurrenceSIF:

Inheritance graph
[legend]
Collaboration diagram for WinRecurrenceSIF:

Collaboration graph
[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.

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

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.

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


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