src/include/common/syncml/core/Status.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
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 version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 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 Tue Oct 30 15:11:26 2007 for Funambol C++ Client Library by  doxygen 1.5.2