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