src/include/common/syncml/core/Status.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_STATUS
00021 #define INCL_STATUS
00022 
00024 #include "base/fscapi.h"
00025 #include "syncml/core/ResponseCommand.h"
00026 #include "syncml/core/Chal.h"
00027 #include "syncml/core/Data.h"
00028 
00029 #define STATUS_COMMAND_NAME "Status"
00030 
00031 class Status : public ResponseCommand {
00032     
00033     private:               
00034         char*   COMMAND_NAME;
00035         Chal*     chal;
00036         Data*     data;
00037         char*   cmd;
00038         
00039         void initialize();
00040     
00041     // ---------------------------------------------------------- Public data    
00042     public:
00043      
00047         Status();
00048         ~Status();
00049     
00066         Status(  CmdID*        cmdID     ,
00067                  const char*   msgRef    ,
00068                  const char*   cmdRef    ,
00069                  const char*   cmd       ,
00070                  ArrayList*    targetRefs,
00071                  ArrayList*    sourceRefs,
00072                  Cred*         cred      ,
00073                  Chal*         chal      ,
00074                  Data*         data      ,
00075                  ArrayList*    items     );
00076     
00077        
00084         Chal* getChal();
00085     
00091         void setChal(Chal* chal);
00092     
00099         Data* getData();
00100     
00107         void setData(Data* data);
00108     
00114         const char* getCmd();
00115     
00122         void setCmd(const char*  cmd);
00123     
00129         int getStatusCode();
00130     
00136         const char* getName();
00137 
00138         ArrayElement* clone();   
00139 };
00140 
00142 #endif

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