D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/mainclientDll/src/include/outlook/ClientAppointment.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_CLIENTAPPOINTMENT
00020 #define INCL_CLIENTAPPOINTMENT
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 ClientAppointment : public ClientItem {
00042 
00043 private:
00044 
00046     _AppointmentItemPtr   pAppointment;
00047 
00049     Redemption::ISafeAppointmentItemPtr pSafeAppointment;
00050 
00052     ClientRecurrence recPattern;
00053 
00054 
00055     void createSafeAppointmentInstance();
00056     void initializeRecPattern();
00057 
00058     bool isSecureProperty (const std::wstring& propertyName);
00059     bool isComplexProperty(const std::wstring& propertyName);
00060 
00061     const std::wstring getSafeProperty   (const std::wstring& propertyName);
00062     const std::wstring getComplexProperty(const std::wstring& propertyName);
00063 
00064     int setComplexProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00065 
00066 
00067 public:
00068 
00069 
00071     ClientAppointment();
00072     ClientAppointment(const ClientAppointment& c);
00073     ClientAppointment operator=(const ClientAppointment& c);
00074 
00076     ~ClientAppointment();
00077 
00078 
00080     void setCOMPtr(_AppointmentItemPtr& ptr, const std::wstring& itemID);
00081     void setCOMPtr(_AppointmentItemPtr& ptr);
00082 
00084     _AppointmentItemPtr& getCOMPtr();
00085 
00086     
00088     ClientRecurrence* getRecPattern();
00090     int clearRecPattern();
00091 
00092 
00093     //
00094     // Client operations on the item.
00095     //
00096     int saveItem();
00097     int deleteItem();
00098     ClientItem* copyItem();
00099     //int moveItem(ClientFolder* destFolder);
00100 
00101 
00103     bool isAllDayEvent();
00104 
00105 };
00106 
00109 #endif

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