src/include/common/syncml/core/SyncHdr.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 #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      // ------------------------------------------------------------ Private data
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     // ---------------------------------------------------------- Public data    
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

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