00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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
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
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