00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_CLIENTMAIL
00020 #define INCL_CLIENTMAIL
00021
00026 #include "outlook/defs.h"
00027 #include "outlook/ClientItem.h"
00028
00029 #include <string>
00030
00031
00032
00034 class ClientMail : public ClientItem {
00035
00036 private:
00037
00038
00039 _MailItemPtr pMail;
00040
00041
00042 Redemption::ISafeMailItemPtr pSafeMail;
00043
00044
00045 void createSafeMailInstance();
00046
00047 bool isSecureProperty (const std::wstring& propertyName);
00048 bool isComplexProperty(const std::wstring& propertyName);
00049
00050 const std::wstring getSafeProperty (const std::wstring& propertyName);
00051 const std::wstring getComplexProperty(const std::wstring& propertyName);
00052
00053 int setComplexProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00054
00055 public:
00056
00057
00058 ClientMail();
00059 ClientMail(const ClientMail& c);
00060 ClientMail operator=(const ClientMail& c);
00061
00062
00063 ~ClientMail();
00064
00065
00066
00067 void setCOMPtr(_MailItemPtr& ptr, const std::wstring& itemID);
00068 void setCOMPtr(_MailItemPtr& ptr);
00069
00070
00071 _MailItemPtr& getCOMPtr();
00072
00073
00074
00075
00076 int saveItem();
00077 int deleteItem();
00078 ClientItem* copyItem();
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 };
00093
00096 #endif