00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_CLIENTTASK
00020 #define INCL_CLIENTTASK
00021
00026 #include "outlook/defs.h"
00027 #include "outlook/ClientItem.h"
00028 #include "outlook/ClientRecurrence.h"
00029
00030 #include <string>
00031
00032
00033
00041 class ClientTask : public ClientItem {
00042
00043 private:
00044
00046 _TaskItemPtr pTask;
00047
00049 Redemption::ISafeTaskItemPtr pSafeTask;
00050
00052 ClientRecurrence recPattern;
00053
00054
00055 void createSafeTaskInstance();
00056 void initializeRecPattern();
00057
00058
00059 bool isSecureProperty (const std::wstring& propertyName);
00060 bool isComplexProperty(const std::wstring& propertyName);
00061
00062 const std::wstring getSafeProperty (const std::wstring& propertyName);
00063 const std::wstring getComplexProperty (const std::wstring& propertyName);
00064
00065 int setComplexProperty (const std::wstring& propertyName, const std::wstring& propertyValue);
00066
00067 public:
00068
00070 ClientTask();
00071 ClientTask(const ClientTask& c);
00072 ClientTask operator=(const ClientTask& c);
00073
00075 ~ClientTask();
00076
00077
00079 void setCOMPtr(_TaskItemPtr& ptr, const std::wstring& itemID);
00080 void setCOMPtr(_TaskItemPtr& ptr);
00081
00083 _TaskItemPtr& getCOMPtr();
00084
00086 ClientRecurrence* getRecPattern();
00087
00088
00089
00090
00091 int saveItem();
00092 int deleteItem();
00093 ClientItem* copyItem();
00094
00095
00096 };
00097
00100 #endif