D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/mainclientDll/src/include/outlook/ClientAppException.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_CLIENTAPPEXCEPTION
00020 #define INCL_CLIENTAPPEXCEPTION
00021 
00026 #include "outlook/defs.h"
00027 
00028 #include <string>
00029 
00030 
00031 
00039 class ClientAppException {
00040 
00041 private:
00042 
00043     // Pointer to microsoft outlook objects.
00044     ExceptionPtr          pException;                   
00045     _AppointmentItemPtr   pAppointment;                 
00048     // Occurrence properties:
00049     std::wstring  subject;
00050     std::wstring  body;
00051     std::wstring  location;
00052     std::wstring  start;
00053     std::wstring  end;
00054     std::wstring  allDayEvent;
00055     std::wstring  busyStatus;
00056     std::wstring  reminderSet;
00057     std::wstring  reminderMinutesBeforeStart;
00058     std::wstring  importance;
00059 
00060     // Exception properties:
00061     DATE          originalDate;
00062     BOOL          deleted;
00063 
00064 
00068     bool isUpdated;
00069 
00071     bool saved;
00072 
00073 
00074 public:
00075 
00077     ClientAppException();
00078 
00080     ~ClientAppException();
00081 
00082 
00085     void setCOMPtr(ExceptionPtr& ptr);
00086     void setCOMPtr(_AppointmentItemPtr& ptr);
00087 
00088 
00090     int read();
00092     int saveOccurrence();
00094     int deleteOccurrence();
00095 
00096 
00098     bool isSaved();
00099 
00100 
00101     //
00102     // Methods to manage the exception properties. 
00103     // -------------------------------------------
00104     //
00105     // get/set exception properties
00106     const BOOL getDeleted     ();
00107     const DATE getOriginalDate();
00108     void       setDeleted     (const BOOL);
00109     void       setOriginalDate(DATE val);
00110 
00111 
00113     const std::wstring  getAppProperty(const std::wstring& propertyName);
00115     int                 setAppProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00116 
00117 
00118     // get/set single occurrence properties
00119     const std::wstring   getSubject                   ();
00120     const std::wstring   getBody                      ();
00121     const std::wstring   getLocation                  ();
00122     const std::wstring   getStart                     ();
00123     const std::wstring   getEnd                       ();
00124     const std::wstring   getAllDayEvent               ();
00125     const std::wstring   getBusyStatus                ();
00126     const std::wstring   getReminderSet               ();
00127     const std::wstring   getReminderMinutesBeforeStart();
00128     const std::wstring   getImportance                ();
00129 
00130     void setSubject                   (const std::wstring& val);
00131     void setBody                      (const std::wstring& val);
00132     void setLocation                  (const std::wstring& val);
00133     void setStart                     (const std::wstring& val);
00134     void setEnd                       (const std::wstring& val);
00135     void setAllDayEvent               (const std::wstring& val);
00136     void setBusyStatus                (const std::wstring& val);
00137     void setReminderSet               (const std::wstring& val);
00138     void setReminderMinutesBeforeStart(const std::wstring& val);
00139     void setImportance                (const std::wstring& val);
00140 
00141 
00143     const std::wstring  formatOriginalDate(BOOL isAllDay, const std::wstring& start);
00144     const std::wstring  formatOriginalDate();
00145 
00146 };
00147 
00150 #endif

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