src/include/common/syncml/core/CTPropParam.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_CTPROP_PARAM
00021 #define INCL_CTPROP_PARAM
00022 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 #include "syncml/core/ContentTypeParameter.h"
00027 #include "syncml/core/StringElement.h"
00028 
00029 class CTPropParam : public ArrayElement{
00030 
00031      // ------------------------------------------------------------ Private data
00032     private:
00033         char*    propName;
00034         ArrayList* valEnum;       //String[]
00035         char*    displayName;
00036         char*    dataType;
00037         int size;
00038         ArrayList* ctParameters; //ContentTypeParameter[]
00039 
00040         void initialize();
00041 
00042     // ---------------------------------------------------------- Protected data
00043     public:
00044         CTPropParam();
00045         ~CTPropParam();
00046 
00047         CTPropParam(char*    propName,
00048                     ArrayList* valEnum,
00049                     char*    displayName,
00050                     ArrayList* ctParameters);
00051 
00052 
00068         CTPropParam(char*  propName,
00069                            char*  dataType,
00070                            int size,
00071                            char*  displayName,
00072                            ArrayList* ctParameters);
00073         // ---------------------------------------------------------- Public methods
00074 
00080         const char* getPropName();
00081 
00087         void setPropName(const char* propName);
00088 
00094         ArrayList* getValEnum();
00095 
00101         void setValEnum(ArrayList* valEnum);
00102 
00108         const char* getDisplayName();
00109 
00115         void setDisplayName(const char* displayName);
00116 
00122         const char* getDataType();
00123 
00129         void setDataType(const char* dataType);
00130 
00136         int getSize();
00137 
00144         void setSize(int size);
00145 
00151         ArrayList* getContentTypeParameters();
00152 
00159         void setContentTypeParameters(ArrayList* ctParameters);
00160 
00161         ArrayElement* clone();
00162 };
00163 
00165 #endif

Generated on Fri Jun 15 11:38:30 2007 for Funambol C++ Client Library by  doxygen 1.5.2