00001 /* 00002 * Copyright (C) 2003-2007 Funambol 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 as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 */ 00018 #ifndef INCL_PROPPARAM 00019 #define INCL_PROPPARAM 00020 00022 #include "base/fscapi.h" 00023 #include "base/util/ArrayList.h" 00024 00025 class PropParam : public ArrayElement { 00026 00027 // ------------------------------------------------------- Private interface 00028 private: 00029 00030 char* paramName; 00031 char* dataType; 00032 ArrayList* valEnums; 00033 char* displayName; 00034 00035 00036 00037 // ----------------------------------------------------- Protected interface 00038 protected: 00039 00040 00041 00042 00043 // -------------------------------------------------------- Public interface 00044 public: 00045 00046 00047 /* 00048 * PropParam constructor 00049 * 00050 */ 00051 PropParam(); 00052 00053 ~PropParam(); 00054 00055 00056 /* 00057 * PropParam constructor 00058 * 00059 * @param p0 prop name 00060 * @param p1 data type 00061 * @param p2 values enum 00062 * @param p3 display name 00063 */ 00064 PropParam(char* p0, char* p1, ArrayList* p2, char* p3); 00065 00066 00067 00068 /* 00069 * getDisplayName 00070 * 00071 */ 00072 const char* getDisplayName(); 00073 00074 00075 /* 00076 * getParamName 00077 * 00078 */ 00079 const char* getParamName(); 00080 00081 00082 /* 00083 * setParamName 00084 * 00085 * @param p0 00086 */ 00087 void setParamName(const char* p0); 00088 00089 00090 /* 00091 * getDataType 00092 * 00093 */ 00094 const char* getDataType(); 00095 00096 00097 /* 00098 * setDataType 00099 * 00100 * @param p0 00101 */ 00102 void setDataType(const char* p0); 00103 00104 00105 /* 00106 * getValEnums 00107 * 00108 */ 00109 ArrayList* getValEnums(); 00110 00111 00112 /* 00113 * setValEnums 00114 * 00115 * @param p0 00116 */ 00117 void setValEnums(ArrayList* p0); 00118 00119 00120 /* 00121 * setDisplayName 00122 * 00123 * @param p0 00124 */ 00125 void setDisplayName(const char* p0); 00126 00127 /* 00128 * Creates a clone of this instance 00129 * 00130 * @return the newly created instance 00131 */ 00132 ArrayElement* clone(); 00133 00134 00135 }; 00136 00137 00139 #endif