00001 /* 00002 * Copyright (C) 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_WINEVENT 00020 #define INCL_WINEVENT 00021 00026 #include "vocl/WinItem.h" 00027 #include "vocl/WinRecurrence.h" 00028 #include "vocl/WinRecipient.h" 00029 #include "vocl/constants.h" 00030 #include "vocl/VObject.h" 00031 00032 00038 class WinEvent : public WinItem { 00039 00040 private: 00041 00043 wstring vCalendar; 00044 00046 WinRecurrence recPattern; 00047 00049 list<wstring> excludeDate; 00051 list<wstring> includeDate; 00052 00054 list<WinRecipient> recipients; 00055 00056 //bool isRecurring; 00057 //bool isAllday; 00058 00059 00068 bool checkVCalendarTypeAndVersion(VObject* vo); 00069 00076 WCHAR* getVObjectPropertyValue(VObject* vo, const WCHAR* propertyName); 00077 00078 00079 public: 00080 00082 WinEvent(); 00083 00085 WinEvent(const wstring dataString); 00086 00088 ~WinEvent(); 00089 00090 00098 int parse(const wstring dataString); 00099 00106 wstring& toString(); 00107 00108 00109 00111 WinRecurrence* getRecPattern(); 00112 00114 list<wstring>* getExcludeDates(); 00115 00117 list<wstring>* getIncludeDates(); 00118 00120 list<WinRecipient>* getRecipients(); 00121 }; 00122 00125 #endif