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

00001 /*
00002  * Copyright (C) 2003-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 
00020 #ifndef INCL_ICALENDAR_PROPERTY
00021 #define INCL_ICALENDAR_PROPERTY
00022 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 
00027 class iCalProperty : public ArrayElement {
00028 
00029 private:
00030     WCHAR* altre;         //Alternate text representation
00031     WCHAR* cn;            //Common name
00032     WCHAR* cutype;        //Calendar user type
00033     WCHAR* delegatedFrom; //Delegator
00034     WCHAR* delegatedTo;   //Delegatee
00035     WCHAR* dir;           //Directory entry
00036     WCHAR* encoding;      //Inline encoding
00037     WCHAR* formattype;    //Format type
00038     WCHAR* fbtype;        //free-busy type
00039     WCHAR* language;      //Language for text
00040     WCHAR* member;        //Group or list membership
00041     WCHAR* partstat;      //Participation status
00042     WCHAR* range;         //Recurrence identifier range
00043     WCHAR* trigrel;       //Alarm trigger relationship
00044     WCHAR* related;       //Relationship type
00045     WCHAR* role;          //Participation role
00046     WCHAR* rsvp;          //RSVP expectation
00047     WCHAR* sentby;        //Sent by
00048     WCHAR* tzid;          //Reference to time zone object
00049     WCHAR* valuetype;     //Property value data type
00050     WCHAR* value;         //the value of property
00051     ArrayList* xParams;
00052 
00053     void set(WCHAR** property, WCHAR* v);
00054 
00055 public:
00056     iCalProperty (WCHAR* v = NULL);
00057     ~iCalProperty();
00058 
00059     // ---------------------------------------------------------- Public methods
00060 
00061     WCHAR* getAltre (WCHAR* buf = NULL, int size = -1);
00062     WCHAR* getCn (WCHAR* buf = NULL, int size = -1);
00063     WCHAR* getCutype (WCHAR* buf = NULL, int size = -1);
00064     WCHAR* getDelegatedFrom (WCHAR* buf = NULL, int size = -1);
00065     WCHAR* getDelegatedTo (WCHAR* buf = NULL, int size = -1);
00066     WCHAR* getDir (WCHAR* buf = NULL, int size = -1);
00067     WCHAR* getEncoding (WCHAR* buf = NULL, int size = -1);
00068     WCHAR* getFormatType (WCHAR* buf = NULL, int size = -1);
00069     WCHAR* getFbType (WCHAR* buf = NULL, int size = -1);
00070     WCHAR* getLanguage (WCHAR* buf = NULL, int size = -1);
00071     WCHAR* getMember (WCHAR* buf = NULL, int size = -1);
00072     WCHAR* getPartStat (WCHAR* buf = NULL, int size = -1);
00073     WCHAR* getRange (WCHAR* buf = NULL, int size = -1);
00074     WCHAR* getTrigRel (WCHAR* buf = NULL, int size = -1);
00075     WCHAR* getRelated (WCHAR* buf = NULL, int size = -1);
00076     WCHAR* getRole (WCHAR* buf = NULL, int size = -1);
00077     WCHAR* getRsvp (WCHAR* buf = NULL, int size = -1);
00078     WCHAR* getSentBy (WCHAR* buf = NULL, int size = -1);
00079     WCHAR* getTzID (WCHAR* buf = NULL, int size = -1);
00080     WCHAR* getValueType (WCHAR* buf = NULL, int size = -1);
00081     WCHAR* getValue (WCHAR* buf = NULL, int size = -1);
00082     ArrayList* getXParam();
00083 
00084     void setAltre (WCHAR* v);
00085     void setCn (WCHAR* v);
00086     void setCutype (WCHAR* v);
00087     void setDelegatedFrom (WCHAR* v);
00088     void setDelegatedTo (WCHAR* v);
00089     void setDir (WCHAR* v);
00090     void setEncoding (WCHAR* v);
00091     void setFormatType (WCHAR* v);
00092     void setFbType (WCHAR* v);
00093     void setLanguage (WCHAR* v);
00094     void setMember (WCHAR* v);
00095     void setPartStat (WCHAR* v);
00096     void setRange (WCHAR* v);
00097     void setTrigRel (WCHAR* v);
00098     void setRelated (WCHAR* v);
00099     void setRole (WCHAR* v);
00100     void setRsvp (WCHAR* v);
00101     void setSentBy (WCHAR* v);
00102     void setTzID (WCHAR* v);
00103     void setValueType (WCHAR* v);
00104     void setValue (WCHAR* v);
00105     void setXParam(ArrayList& list);
00106 
00107     ArrayElement* clone();
00108 };
00109 
00111 #endif

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