src/include/common/syncml/core/CTPropParam.h

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 
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 Apr 27 12:29:19 2007 for Funambol C++ Client Library by  doxygen 1.5.2