src/include/common/syncml/core/MetInf.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 
00021 #ifndef INCL_METINF
00022 #define INCL_METINF
00023 
00025 #include "base/fscapi.h"
00026 #include "base/util/ArrayList.h"
00027 #include "syncml/core/Anchor.h"
00028 #include "syncml/core/NextNonce.h"
00029 #include "syncml/core/Mem.h"
00030 #include "syncml/core/EMI.h"
00031 
00032 
00033 class MetInf {
00034 
00035      // ------------------------------------------------------------ Private data
00036     private:
00037         char*      format    ;
00038         char*      type      ;
00039         char*      mark      ;
00040         Anchor*      anchor    ;
00041         char*      version   ;
00042         NextNonce*   nextNonce ;
00043         long         maxMsgSize;
00044         long         maxObjSize;
00045         long         size      ;
00046         ArrayList*   emi       ;
00047         Mem*         mem       ;
00048 
00064         void set(const char*     format,
00065                  const char*     type  ,
00066                  const char*     mark  ,
00067                  long        size      ,
00068                  Anchor*     anchor    ,
00069                  const char*    version,
00070                  NextNonce*  nonce     ,
00071                  long        maxMsgSize,
00072                  long        maxObjSize,
00073                  ArrayList*  emi       ,
00074                  Mem*        mem       );
00075 
00076     // ---------------------------------------------------------- Protected data
00077     public:
00078 
00079         MetInf();
00080 
00081                 ~MetInf();
00082 
00099     MetInf(const char*     format    ,
00100            const char*     type      ,
00101            const char*     mark      ,
00102            long        size      ,
00103            Anchor*     anchor    ,
00104            const char*     version   ,
00105            NextNonce*  nonce     ,
00106            long        maxMsgSize,
00107            long        maxObjSize,
00108            ArrayList*  emi       ,
00109            Mem*        mem       );
00110 
00111 
00117     long getSize();
00118 
00124     void setSize(long size);
00125 
00131     const char* getFormat();
00132 
00138     void setFormat(const char*  format);
00139 
00145     const char* getType();
00146 
00152     void setType(const char*  type);
00153 
00159     const char* getMark() ;
00160 
00166     void setMark(const char*  mark);
00167 
00173     void setEmi(ArrayList* emi);
00174 
00180         Anchor* getAnchor();
00186         void setAnchor(Anchor* anchor);
00187 
00193         NextNonce* getNextNonce();
00194 
00200         void setNextNonce(NextNonce* nextNonce);
00201 
00207         Mem* getMem();
00208 
00214         void setMem(Mem* mem);
00215 
00216 
00222         long getMaxMsgSize();
00223 
00229          void setMaxMsgSize(long maxMsgSize);
00230 
00236         long getMaxObjSize();
00237 
00243         void setMaxObjSize(long maxObjSize);
00244 
00250         ArrayList* getEMI();
00251 
00257         void setEMI(ArrayList* emi);
00258 
00264         const char* getVersion();
00265 
00271         void setVersion(const char*  version);
00272 
00273         MetInf* clone();
00274 
00275 };
00276 
00278 #endif

Generated on Tue Oct 30 15:11:26 2007 for Funambol C++ Client Library by  doxygen 1.5.2