src/include/common/vocl/iCalendar/Event.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 
00036 
00037 #ifndef INCL_ICALENDAR_EVENT
00038 #define INCL_ICALENDAR_EVENT
00039 
00041 #include "base/util/ArrayElement.h"
00042 #include "vocl/VObject.h"
00043 #include "vocl/iCalendar/iCalProperty.h"
00044 
00045 class Event: public VObject, public ArrayElement {
00046 
00047 private:
00048     iCalProperty* classEvent;
00049     iCalProperty* created;
00050     iCalProperty* description;
00051     iCalProperty* dtStart;
00052     iCalProperty* geo;
00053     iCalProperty* lastMod;
00054     iCalProperty* location;
00055     iCalProperty* organizer;
00056     iCalProperty* priority;
00057     iCalProperty* dtStamp;
00058     iCalProperty* seq;
00059     iCalProperty* status;
00060     iCalProperty* summary;
00061     iCalProperty* transp;
00062     iCalProperty* uid;
00063     iCalProperty* url;
00064     iCalProperty* recurID;
00065     iCalProperty* dtEnd;
00066     iCalProperty* duration;
00067     ArrayList* attach;
00068     ArrayList* attendee;
00069     ArrayList* categories;
00070     ArrayList* comment;
00071     ArrayList* contact;
00072     ArrayList* exDate;
00073     ArrayList* exRule;
00074     ArrayList* rStatus;
00075     ArrayList* related;
00076     ArrayList* resources;
00077     ArrayList* rDate;
00078     ArrayList* rRule;
00079     ArrayList* xProp;
00080     void set(iCalProperty** oldProperty, iCalProperty& newProperty);
00081     iCalProperty* getiCalPropertyFromVProperty(VProperty* vp);
00082     VProperty* getVPropertyFromiCalProperty(WCHAR* name, iCalProperty* prop);
00083 
00084 public:
00085 
00086     Event();
00087     ~Event();
00088     WCHAR* toString();
00089     void setClass(iCalProperty& a);
00090     void setCreated(iCalProperty& a);
00091     void setDescription(iCalProperty& a);
00092     void setDtStart(iCalProperty& a);
00093     void setGeo(iCalProperty& a);
00094     void setLastMod(iCalProperty& a);
00095     void setLocation(iCalProperty& a);
00096     void setOrganizer(iCalProperty& a);
00097     void setPriority(iCalProperty& a);
00098     void setDtStamp(iCalProperty& a);
00099     void setSequence(iCalProperty& a);
00100     void setStatus(iCalProperty& a);
00101     void setSummary(iCalProperty& a);
00102     void setTransport(iCalProperty& a);
00103     void setUid(iCalProperty& a);
00104     void setUrl(iCalProperty& a);
00105     void setRecurID(iCalProperty& a);
00106     void setDtEnd(iCalProperty& a);
00107     void setDuration(iCalProperty& a);
00108     void setAttach(ArrayList& list);
00109     void setAttendee(ArrayList& list);
00110     void setCategories(ArrayList& list);
00111     void setComment(ArrayList& list);
00112     void setContact(ArrayList& list);
00113     void setExDate(ArrayList& list);
00114     void setExRule(ArrayList& list);
00115     void setRStatus(ArrayList& list);
00116     void setRelated(ArrayList& list);
00117     void setResources(ArrayList& list);
00118     void setRDate(ArrayList& list);
00119     void setRRule(ArrayList& list);
00120     void setXProp(ArrayList& list);
00121 
00122     iCalProperty* getClass();
00123     iCalProperty* getCreated();
00124     iCalProperty* getDescription();
00125     iCalProperty* getDtStart();
00126     iCalProperty* getGeo();
00127     iCalProperty* getLastMod();
00128     iCalProperty* getLocation();
00129     iCalProperty* getOrganizer();
00130     iCalProperty* getPriority();
00131     iCalProperty* getDtStamp();
00132     iCalProperty* getSequence();
00133     iCalProperty* getStatus();
00134     iCalProperty* getSummary();
00135     iCalProperty* getTransport();
00136     iCalProperty* getUid();
00137     iCalProperty* getUrl();
00138     iCalProperty* getRecurID();
00139     iCalProperty* getDtEnd();
00140     iCalProperty* getDuration();
00141     ArrayList* getAttach();
00142     ArrayList* getAttendee();
00143     ArrayList* getCategories();
00144     ArrayList* getComment();
00145     ArrayList* getContact();
00146     ArrayList* getExDate();
00147     ArrayList* getExRule();
00148     ArrayList* getRStatus();
00149     ArrayList* getRelated();
00150     ArrayList* getResources();
00151     ArrayList* getRDate();
00152     ArrayList* getRRule();
00153     ArrayList* getXProp();
00154 
00155         ArrayElement* clone();
00156 
00157 };
00158 
00160 #endif

Generated on Thu Mar 6 14:25:06 2008 for Funambol C++ Client Library by  doxygen 1.5.2