src/include/common/vocl/iCalendar/ToDo.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_TODO
00038 #define INCL_ICALENDAR_TODO
00039 
00041 #include "vocl/VObject.h"
00042 #include "vocl/iCalendar/iCalProperty.h"
00043 #include "base/globalsdef.h"
00044 
00045 BEGIN_NAMESPACE
00046 
00047 class ToDo : public VObject, public ArrayElement {
00048 
00049 private:
00050     iCalProperty* classEvent;
00051     iCalProperty* completed;
00052     iCalProperty* created;
00053     iCalProperty* description;
00054     iCalProperty* dtStamp;
00055     iCalProperty* dtStart;
00056     iCalProperty* geo;
00057     iCalProperty* lastMod;
00058     iCalProperty* location;
00059     iCalProperty* organizer;
00060     iCalProperty* percent;
00061     iCalProperty* priority;
00062     iCalProperty* recurID;
00063     iCalProperty* seq;
00064     iCalProperty* status;
00065     iCalProperty* summary;
00066     iCalProperty* uid;
00067     iCalProperty* url;
00068     iCalProperty* due;
00069     iCalProperty* duration;
00070     ArrayList* attach;
00071     ArrayList* attendee;
00072     ArrayList* categories;
00073     ArrayList* comment;
00074     ArrayList* contact;
00075     ArrayList* exDate;
00076     ArrayList* exRule;
00077     ArrayList* rStatus;
00078     ArrayList* related;
00079     ArrayList* resources;
00080     ArrayList* rDate;
00081     ArrayList* rRule;
00082     ArrayList* xProp;
00083     void set(iCalProperty** oldProperty, iCalProperty& newProperty);
00084     iCalProperty* getiCalPropertyFromVProperty(VProperty* vp);
00085     VProperty* getVPropertyFromiCalProperty(WCHAR* name, iCalProperty* prop);
00086 
00087 public:
00088     ToDo();
00089     ~ToDo();
00090     WCHAR* toString();
00091     void setClass(iCalProperty& a);
00092     void setCompleted(iCalProperty& a);
00093     void setCreated(iCalProperty& a);
00094     void setDescription(iCalProperty& a);
00095     void setDtStamp(iCalProperty& a);
00096     void setDtStart(iCalProperty& a);
00097     void setGeo(iCalProperty& a);
00098     void setLastMod(iCalProperty& a);
00099     void setLocation(iCalProperty& a);
00100     void setOrganizer(iCalProperty& a);
00101     void setPercent(iCalProperty& a);
00102     void setPriority(iCalProperty& a);
00103     void setRecurID(iCalProperty& a);
00104     void setSequence(iCalProperty& a);
00105     void setStatus(iCalProperty& a);
00106     void setSummary(iCalProperty& a);
00107     void setUid(iCalProperty& a);
00108     void setUrl(iCalProperty& a);
00109     void setDue(iCalProperty& a);
00110     void setDuration(iCalProperty& a);
00111     void setAttach(ArrayList& list);
00112     void setAttendee(ArrayList& list);
00113     void setCategories(ArrayList& list);
00114     void setComment(ArrayList& list);
00115     void setContact(ArrayList& list);
00116     void setExDate(ArrayList& list);
00117     void setExRule(ArrayList& list);
00118     void setRStatus(ArrayList& list);
00119     void setRelated(ArrayList& list);
00120     void setResources(ArrayList& list);
00121     void setRDate(ArrayList& list);
00122     void setRRule(ArrayList& list);
00123     void setXProp(ArrayList& list);
00124 
00125     iCalProperty* getClass();
00126     iCalProperty* getCompleted();
00127     iCalProperty* getCreated();
00128     iCalProperty* getDescription();
00129     iCalProperty* getDtStamp();
00130     iCalProperty* getDtStart();
00131     iCalProperty* getGeo();
00132     iCalProperty* getLastMod();
00133     iCalProperty* getLocation();
00134     iCalProperty* getOrganizer();
00135     iCalProperty* getPercent();
00136     iCalProperty* getPriority();
00137     iCalProperty* getRecurID();
00138     iCalProperty* getSequence();
00139     iCalProperty* getStatus();
00140     iCalProperty* getSummary();
00141     iCalProperty* getUid();
00142     iCalProperty* getUrl();
00143     iCalProperty* getDue();
00144     iCalProperty* getDuration();
00145     ArrayList* getAttach();
00146     ArrayList* getAttendee();
00147     ArrayList* getCategories();
00148     ArrayList* getComment();
00149     ArrayList* getContact();
00150     ArrayList* getExDate();
00151     ArrayList* getExRule();
00152     ArrayList* getRStatus();
00153     ArrayList* getRelated();
00154     ArrayList* getResources();
00155     ArrayList* getRDate();
00156     ArrayList* getRRule();
00157     ArrayList* getXProp();
00158 
00159         ArrayElement* clone();
00160 
00161 };
00162 
00163 END_NAMESPACE
00164 
00166 #endif

Generated on Wed Jan 14 17:15:37 2009 for Funambol C++ Client Library by  doxygen 1.5.2