WinNote Class Reference
[Windows Adapter]

Rapresents a note object for Windows Clients. More...

#include <WinNote.h>

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

List of all members.

Public Member Functions

 WinNote ()
 Default Constructor.
 WinNote (const wstring dataString)
 Constructor: fills propertyMap parsing the passed vNote string.
 ~WinNote ()
 Destructor.
virtual int parse (const wstring dataString)
 Parse a vNote string and fills the propertyMap.
virtual wstring & toString ()
 Format and return a vNote string from the propertyMap.

Private Member Functions

bool checkVNoteTypeAndVersion (VObject *vo)
 Checks the productID and version of VObject passed for vNote.

Private Attributes

wstring vNote
 Internal string formatted (VNOTE).


Detailed Description

Rapresents a note object for Windows Clients.

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


Member Function Documentation

bool WinNote::checkVNoteTypeAndVersion ( VObject *  vo  )  [private]

Checks the productID and version of VObject passed for vNote.

  • 'productID' MUST be "VNOTE"
  • '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

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

Parse a vNote string and fills the propertyMap.

The map is cleared and will contain only found properties at the end of the parsing.

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

Implements WinItem.

Reimplemented in WinNoteSIF.

virtual wstring& WinNote::toString (  )  [virtual]

Format and return a vNote string from the propertyMap.

Not supported properties are ignored and so not formatted as they don't have a correspondence in propertyMap.

Returns:
the vNote string formatted, reference to internal wstring

Implements WinItem.

Reimplemented in WinNoteSIF.


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