00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_WINCONTACT_SIF
00020 #define INCL_WINCONTACT_SIF
00021
00026 #include "vocl/VObject.h"
00027 #include "vocl/WinItem.h"
00028 #include "vocl/WinContact.h"
00029
00030 using namespace std;
00031
00032
00038 class WinContactSIF : public WinContact {
00039
00040 private:
00041
00043 wstring sif;
00044 const wchar_t** sifFields;
00045
00046 public:
00047
00049 WinContactSIF();
00051 WinContactSIF(const wstring dataString, const wchar_t **fields);
00052
00054 ~WinContactSIF();
00055
00063 int parse(const wstring dataString);
00064
00071 wstring toString();
00072
00084 wstring adaptToSpecsSIF(const wstring& propName, const wstring& propValue, const wstring& type);
00085
00086
00090 void addPropertyToSIF(const wstring propertyName, wstring propertyValue);
00091
00095 void PropertyValue into 'sif' string.">addPhotoToSIF(wstring propertyValue);
00096
00097
00098
00099
00100 wstring trim(const wstring& str);
00101
00102
00103
00104
00105 wstring formatDateWithMinus(const wstring& stringDate);
00106
00117 wstring adaptToSIFSpecs(const wstring& propName, const wstring& propValue);
00118
00119 };
00122 #endif