WinContact Class Reference
[Win_adapter]

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

#include <wincontact.h>

Inheritance diagram for WinContact:

Inheritance graph
[legend]
Collaboration diagram for WinContact:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WinContact ()
 Default Constructor.
 WinContact (const wstring dataString)
 Constructor: fills propertyMap parsing the passed vCard.
virtual ~WinContact ()
 Destructor.
virtual int parse (const wstring dataString)
 Parse a vCard string and fills the propertyMap.
virtual wstring toString ()
 Format and return a vCard string from the propertyMap.
const wstring getPhotoType ()
 Returns the picture type ("JPEG", "GIF", ...).
void setPhotoType (const wstring type)
 Sets the picture type.

Protected Attributes

wstring photoType
 The format of internal picure for this contact.

Detailed Description

Rapresents a contact object for Windows Clients.

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


Member Function Documentation

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

Parse a vCard string and fills the propertyMap.

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

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

Reimplemented in WinContactSIF.

virtual wstring WinContact::toString (  )  [virtual]

Format and return a vCard string from the propertyMap.

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

Returns:
the vCard string formatted, reference to internal wstring

Reimplemented in WinContactSIF.


The documentation for this class was generated from the following file:
Generated on Thu Mar 6 14:25:10 2008 for Funambol C++ Client Library by  doxygen 1.5.2