2 * Funambol is a mobile platform developed by Funambol, Inc.
3 * Copyright (C) 2003 - 2007 Funambol, Inc.
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Affero General Public License version 3 as published by
7 * the Free Software Foundation with the addition of the following permission
8 * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
9 * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE
10 * WARRANTY OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program; if not, see http://www.gnu.org/licenses or write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite
23 * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
25 * The interactive user interfaces in modified source and object code versions
26 * of this program must display Appropriate Legal Notices, as required under
27 * Section 5 of the GNU Affero General Public License version 3.
29 * In accordance with Section 7(b) of the GNU Affero General Public License
30 * version 3, these Appropriate Legal Notices must retain the display of the
31 * "Powered by Funambol" logo. If the display of the logo is not reasonably
32 * feasible for technical reasons, the Appropriate Legal Notices must display
33 * the words "Powered by Funambol".
37 #ifndef INCL_ICALENDAR_EVENT
38 #define INCL_ICALENDAR_EVENT
41 #include "base/util/ArrayElement.h"
42 #include "vocl/VObject.h"
43 #include "vocl/iCalendar/iCalProperty.h"
44 #include "base/globalsdef.h"
48 class Event: public VObject, public ArrayElement {
51 iCalProperty* classEvent;
52 iCalProperty* created;
53 iCalProperty* description;
54 iCalProperty* dtStart;
56 iCalProperty* lastMod;
57 iCalProperty* location;
58 iCalProperty* organizer;
59 iCalProperty* priority;
60 iCalProperty* dtStamp;
63 iCalProperty* summary;
67 iCalProperty* recurID;
69 iCalProperty* duration;
72 ArrayList* categories;
83 void set(iCalProperty** oldProperty, iCalProperty& newProperty);
84 iCalProperty* getiCalPropertyFromVProperty(VProperty* vp);
85 VProperty* getVPropertyFromiCalProperty(WCHAR* name, iCalProperty* prop);
92 void setClass(iCalProperty& a);
93 void setCreated(iCalProperty& a);
94 void setDescription(iCalProperty& a);
95 void setDtStart(iCalProperty& a);
96 void setGeo(iCalProperty& a);
97 void setLastMod(iCalProperty& a);
98 void setLocation(iCalProperty& a);
99 void setOrganizer(iCalProperty& a);
100 void setPriority(iCalProperty& a);
101 void setDtStamp(iCalProperty& a);
102 void setSequence(iCalProperty& a);
103 void setStatus(iCalProperty& a);
104 void setSummary(iCalProperty& a);
105 void setTransport(iCalProperty& a);
106 void setUid(iCalProperty& a);
107 void setUrl(iCalProperty& a);
108 void setRecurID(iCalProperty& a);
109 void setDtEnd(iCalProperty& a);
110 void setDuration(iCalProperty& a);
111 void setAttach(ArrayList& list);
112 void setAttendee(ArrayList& list);
113 void setCategories(ArrayList& list);
114 void setComment(ArrayList& list);
115 void setContact(ArrayList& list);
116 void setExDate(ArrayList& list);
117 void setExRule(ArrayList& list);
118 void setRStatus(ArrayList& list);
119 void setRelated(ArrayList& list);
120 void setResources(ArrayList& list);
121 void setRDate(ArrayList& list);
122 void setRRule(ArrayList& list);
123 void setXProp(ArrayList& list);
125 iCalProperty* getClass();
126 iCalProperty* getCreated();
127 iCalProperty* getDescription();
128 iCalProperty* getDtStart();
129 iCalProperty* getGeo();
130 iCalProperty* getLastMod();
131 iCalProperty* getLocation();
132 iCalProperty* getOrganizer();
133 iCalProperty* getPriority();
134 iCalProperty* getDtStamp();
135 iCalProperty* getSequence();
136 iCalProperty* getStatus();
137 iCalProperty* getSummary();
138 iCalProperty* getTransport();
139 iCalProperty* getUid();
140 iCalProperty* getUrl();
141 iCalProperty* getRecurID();
142 iCalProperty* getDtEnd();
143 iCalProperty* getDuration();
144 ArrayList* getAttach();
145 ArrayList* getAttendee();
146 ArrayList* getCategories();
147 ArrayList* getComment();
148 ArrayList* getContact();
149 ArrayList* getExDate();
150 ArrayList* getExRule();
151 ArrayList* getRStatus();
152 ArrayList* getRelated();
153 ArrayList* getResources();
154 ArrayList* getRDate();
155 ArrayList* getRRule();
156 ArrayList* getXProp();
158 ArrayElement* clone();