00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef INCL_SYNC_HDR
00021 #define INCL_SYNC_HDR
00022
00024 #include "base/fscapi.h"
00025 #include "syncml/core/VerDTD.h"
00026 #include "syncml/core/VerProto.h"
00027 #include "syncml/core/SessionID.h"
00028 #include "syncml/core/Target.h"
00029 #include "syncml/core/Source.h"
00030 #include "syncml/core/Cred.h"
00031 #include "syncml/core/Meta.h"
00032
00033 #define SYNCHDR_COMMAND_NAME "SyncHdr"
00034
00035 class SyncHdr {
00036
00037
00038 private:
00039 char* COMMAND_NAME;
00040 VerDTD* verDTD ;
00041 VerProto* verProto ;
00042 SessionID* sessionID;
00043 char* msgID ;
00044 Target* target ;
00045 Source* source ;
00046 char* respURI ;
00047 BOOL noResp ;
00048 Cred* cred ;
00049 Meta* meta ;
00050
00051
00052 public:
00053
00054 SyncHdr();
00055 ~SyncHdr();
00056
00072 SyncHdr(VerDTD* verDTD,
00073 VerProto* verProto,
00074 SessionID* sessionID,
00075 char* msgID,
00076 Target* target,
00077 Source* source,
00078 char* respURI,
00079 BOOL noResp,
00080 Cred* cred,
00081 Meta* meta);
00082
00088 VerDTD* getVerDTD();
00089
00096 void setVerDTD(VerDTD* verDTD);
00097
00103 VerProto* getVerProto();
00104
00110 void setVerProto(VerProto* verProto);
00111
00117 SessionID* getSessionID();
00118
00125 void setSessionID(SessionID* sessionID);
00126
00132 const char* getMsgID();
00133
00139 void setMsgID(const char* msgID);
00140
00146 Target* getTarget();
00147
00153 void setTarget(Target* target);
00154
00160 Source* getSource();
00161
00167 void setSource(Source* source);
00168
00174 const char* getRespURI();
00175
00181 void setRespURI(const char* uri);
00182
00188 BOOL isNoResp();
00189
00195 BOOL getNoResp();
00196
00202 void setNoResp(BOOL noResp);
00203
00209 Cred* getCred();
00210
00216 void setCred(Cred* cred);
00217
00223 Meta* getMeta();
00224
00230 void setMeta(Meta* meta);
00231
00232 const char* getName();
00233
00234 SyncHdr* clone();
00235 };
00236
00238 #endif