00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef INCL_CLIENTITEM
00037 #define INCL_CLIENTITEM
00038
00043 #include "outlook/defs.h"
00044
00045 #include <map>
00046 #include <string>
00047
00048
00049
00060 class ClientItem {
00061
00062 protected:
00063
00064 std::wstring ID;
00065 std::wstring itemType;
00066 std::wstring parentPath;
00069
00070 std::map<std::wstring,int> propertyMap;
00071 int propertiesCount;
00072 int propertiesIndex;
00073
00075 ItemPropertiesPtr pItemProperties;
00076 ItemPropertyPtr pItemProperty;
00077
00079 HRESULT hr;
00080
00081
00082 void createPropertyMap();
00083 const std::wstring convertPropertyName(const std::wstring& SIFName);
00084
00085 virtual bool isSecureProperty (const std::wstring& propertyName) = 0;
00086 virtual bool isComplexProperty (const std::wstring& propertyName) = 0;
00087
00088 const std::wstring getSimpleProperty (const std::wstring& propertyName);
00089 virtual const std::wstring getSafeProperty (const std::wstring& propertyName) = 0;
00090 virtual const std::wstring getComplexProperty(const std::wstring& propertyName) = 0;
00091
00092 int setSimpleProperty (const std::wstring& propertyName, const std::wstring& propertyValue);
00093 virtual int setComplexProperty(const std::wstring& propertyName, const std::wstring& propertyValue) = 0;
00094
00095 public:
00096
00098 ClientItem();
00099
00101 virtual ~ClientItem();
00102
00103
00104 const std::wstring& getID();
00105 const std::wstring& getType();
00106 const std::wstring& getParentPath();
00107
00108
00109
00110
00111
00112 virtual int saveItem() = 0;
00113 virtual int deleteItem() = 0;
00114 virtual ClientItem* copyItem() = 0;
00115
00116
00117
00118
00119
00120
00121
00122 const int getPropertiesCount();
00123 const int getPropertiesIndex();
00124
00126 const std::wstring getProperty(const std::wstring& propertyName);
00128 int setProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00129
00130 };
00131
00134 #endif