src/include/common/syncml/core/DevInf.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_DEVINF
00021 #define INCL_DEVINF
00022 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 #include "syncml/core/VerDTD.h"
00027 #include "syncml/core/DataStore.h"
00028 #include "syncml/core/CTCap.h"
00029 #include "syncml/core/Ext.h"
00030 
00031 
00032 class DevInf {
00033     
00034      // ------------------------------------------------------------ Private data
00035     private:
00036         VerDTD* verDTD;
00037         char*  man;
00038         char*  mod;
00039         char*  oem;
00040         char*  fwV;
00041         char*  swV;
00042         char*  hwV;
00043         char*  devID;
00044         char*  devTyp;
00045         ArrayList* dataStores;  //DataStore[]
00046         ArrayList* ctCap;       // CTCap[]
00047         ArrayList* ext;         // Ext[]
00048         BOOL utc;
00049         BOOL supportLargeObjs;
00050         BOOL supportNumberOfChanges;      
00051         SyncCap* syncCap;
00052 
00053         void initialize();
00054     
00055     // ---------------------------------------------------------- Public data    
00056     public:
00057     
00058         DevInf();
00059         ~DevInf();
00060 
00081         DevInf(VerDTD* verDTD,
00082                const  char*  man,
00083                const char*  mod,
00084                const char*  oem,
00085                const char*  fwV,
00086                const char*  swV,
00087                const char*  hwV,
00088                const char*  devID,
00089                const char*  devTyp,
00090                ArrayList* dataStores,
00091                ArrayList* ctCap,
00092                ArrayList* ext,
00093                BOOL utc,
00094                BOOL supportLargeObjs,
00095                BOOL supportNumberOfChanges,
00096                SyncCap* syncCap);
00097 
00098         // ---------------------------------------------------------- Public methods
00104         VerDTD* getVerDTD();
00105 
00111         void setVerDTD(VerDTD* verDTD);
00112 
00118         const char* getMan();
00119 
00126         void setMan(const char*  man);
00127 
00133         const char* getMod();
00134 
00141         void setMod(const char*  mod);
00142 
00148         const char* getOEM();
00149 
00156         void setOEM(const char*  oem);
00157 
00163         const char* getFwV();
00164 
00171         void setFwV(const char*  fwV);
00172 
00178         const char* getSwV();
00179 
00186         void setSwV(const char*  swV);
00187 
00193         const char* getHwV();
00194 
00201         void setHwV(const char*  hwV);
00202 
00208         const char* getDevID();
00209 
00216         void setDevID(const char*  devID);
00217 
00223         const char* getDevTyp();
00224 
00231         void setDevTyp(const char*  devTyp);
00232 
00238         ArrayList* getDataStore();
00239 
00246         void setDataStore(ArrayList* dataStores);
00252         ArrayList* getCTCap();
00253 
00260         void setCTCap(ArrayList* ctCap);
00261 
00267         ArrayList* getExt();
00268 
00275         void setExt(ArrayList* ext);
00276 
00282         BOOL isUTC();
00283 
00289         void setUTC(BOOL utc);
00290 
00296         BOOL getUTC();
00297 
00303         BOOL isSupportLargeObjs();
00304 
00311         void setSupportLargeObjs(BOOL supportLargeObjs);
00312 
00313         
00319         BOOL getSupportLargeObjs();
00320 
00326         BOOL isSupportNumberOfChanges();
00327 
00334         void setSupportNumberOfChanges(BOOL supportNumberOfChanges);        
00335 
00341         BOOL getSupportNumberOfChanges();
00342 
00343         void setSyncCap(SyncCap* syncCap);
00344 
00345         SyncCap* getSyncCap();
00346 
00347         DevInf* clone();
00348    
00349 };
00350 
00352 #endif

Generated on Fri Apr 27 12:29:19 2007 for Funambol C++ Client Library by  doxygen 1.5.2