D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/mainclientDll/src/include/outlook/ClientTask.h

00001  /*
00002  * Copyright (C) 2006-2007 Funambol, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
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     // Client operations on the item.
00090     //
00091     int saveItem();
00092     int deleteItem();
00093     ClientItem* copyItem();
00094     //int moveItem(ClientFolder* destFolder);
00095 
00096 };
00097 
00100 #endif

Generated on Fri Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2