00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef INCL_METINF
00039 #define INCL_METINF
00040
00042 #include "base/fscapi.h"
00043 #include "base/util/ArrayList.h"
00044 #include "syncml/core/Anchor.h"
00045 #include "syncml/core/NextNonce.h"
00046 #include "syncml/core/Mem.h"
00047 #include "syncml/core/EMI.h"
00048
00049
00050 class MetInf {
00051
00052
00053 private:
00054 char* format ;
00055 char* type ;
00056 char* mark ;
00057 Anchor* anchor ;
00058 char* version ;
00059 NextNonce* nextNonce ;
00060 long maxMsgSize;
00061 long maxObjSize;
00062 long size ;
00063 ArrayList* emi ;
00064 Mem* mem ;
00065
00081 void set(const char* format,
00082 const char* type ,
00083 const char* mark ,
00084 long size ,
00085 Anchor* anchor ,
00086 const char* version,
00087 NextNonce* nonce ,
00088 long maxMsgSize,
00089 long maxObjSize,
00090 ArrayList* emi ,
00091 Mem* mem );
00092
00093
00094 public:
00095
00096 MetInf();
00097
00098 ~MetInf();
00099
00116 MetInf(const char* format ,
00117 const char* type ,
00118 const char* mark ,
00119 long size ,
00120 Anchor* anchor ,
00121 const char* version ,
00122 NextNonce* nonce ,
00123 long maxMsgSize,
00124 long maxObjSize,
00125 ArrayList* emi ,
00126 Mem* mem );
00127
00128
00134 long getSize();
00135
00141 void setSize(long size);
00142
00148 const char* getFormat();
00149
00155 void setFormat(const char* format);
00156
00162 const char* getType();
00163
00169 void setType(const char* type);
00170
00176 const char* getMark() ;
00177
00183 void setMark(const char* mark);
00184
00190 void setEmi(ArrayList* emi);
00191
00197 Anchor* getAnchor();
00203 void setAnchor(Anchor* anchor);
00204
00210 NextNonce* getNextNonce();
00211
00217 void setNextNonce(NextNonce* nextNonce);
00218
00224 Mem* getMem();
00225
00231 void setMem(Mem* mem);
00232
00233
00239 long getMaxMsgSize();
00240
00246 void setMaxMsgSize(long maxMsgSize);
00247
00253 long getMaxObjSize();
00254
00260 void setMaxObjSize(long maxObjSize);
00261
00267 ArrayList* getEMI();
00268
00274 void setEMI(ArrayList* emi);
00275
00281 const char* getVersion();
00282
00288 void setVersion(const char* version);
00289
00290 MetInf* clone();
00291
00292 };
00293
00295 #endif