src/include/common/syncml/core/Meta.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 
00021 #ifndef INCL_META
00022 #define INCL_META
00023 
00025 #include "base/fscapi.h"
00026 #include "syncml/core/MetInf.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 class Meta {
00033     
00034      // ------------------------------------------------------------ Private data
00035     private:
00036        MetInf* metInf;
00037        
00038        void set(const char*     format,
00039                 const char*     type  ,
00040                 const char*     mark  ,
00041                 long        size      ,
00042                 Anchor*     anchor    ,
00043                 const char*     version,
00044                 NextNonce*  nonce     ,
00045                 long        maxMsgSize,
00046                 long        maxObjSize,
00047                 ArrayList*  emi       ,
00048                 Mem*        mem      ); 
00049                 
00050     
00051     // ---------------------------------------------------------- Public data    
00052     public:
00053 
00054         Meta();
00055 
00056         ~Meta();
00057     
00058         MetInf* getMetInf();
00059                 
00060                 void setMetInf(MetInf* metInf);
00061 
00068                 MetInf* getNullMetInf();
00069 
00075                 long getSize();
00076 
00082                 void setSize(long size);
00083    
00089                 const char* getFormat();
00090 
00096                 void setFormat(const char*  format);
00097 
00103                 const char* getType();
00104 
00110                 void setType(const char*  type);
00111 
00117                 const char* getMark();
00118 
00124                 void setMark(const char*  mark);
00125 
00131                 const char* getVersion();
00132 
00138                 void setVersion(const char*  version);
00139 
00140                 
00146                 Anchor* getAnchor();
00147 
00153                 void setAnchor(Anchor* anchor);
00154 
00160                 NextNonce* getNextNonce();
00161 
00167                 void setNextNonce(NextNonce* nextNonce);
00168 
00174                 long getMaxMsgSize();
00175 
00181                 void setMaxMsgSize(long maxMsgSize);
00182 
00188                 long getMaxObjSize();
00189 
00195                 void setMaxObjSize(long maxObjSize);
00196 
00202                 Mem* getMem();
00203 
00209                 void setMem(Mem* mem);
00210         
00216                 void setEMI(ArrayList* emi);
00217                 
00223                 ArrayList* getEMI();
00224         
00230         Meta* clone();
00231 };
00232 
00234 #endif

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