src/include/common/syncml/core/ResponseCommand.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_RESPONSE_COMMAND
00021 #define INCL_RESPONSE_COMMAND
00022 
00024 #include "base/fscapi.h"
00025 #include "syncml/core/ItemizedCommand.h"
00026 
00027 
00028 class ResponseCommand : public ItemizedCommand {
00029     
00030      // ------------------------------------------------------------ Protected data
00031     protected:
00035         char*  msgRef;
00036     
00040         char*  cmdRef;
00041     
00045         ArrayList* targetRef; // TargetRef[]
00046     
00050         ArrayList* sourceRef; // SourceRef[]                        
00051     
00052     
00053     // ---------------------------------------------------------- Public data    
00054     public:
00055 
00056         ResponseCommand();
00057         ~ResponseCommand();
00058         
00070         ResponseCommand(
00071                 CmdID*              cmdID     ,
00072                 const char*         msgRef    ,
00073                 const char*         cmdRef    ,
00074                 ArrayList*          targetRefs,
00075                 ArrayList*          sourceRefs,
00076                 ArrayList*          items      );
00077             
00078     
00085         const char* getMsgRef();
00086     
00092         void setMsgRef(const char*  msgRef);
00093     
00100         const char* getCmdRef();
00101     
00108         void setCmdRef(const char*  cmdRef);
00109     
00116         ArrayList* getTargetRef();
00117     
00123         void setTargetRef(ArrayList* targetRefs);
00124     
00131         ArrayList* getSourceRef();
00132     
00138         void setSourceRef(ArrayList* sourceRefs);
00139     
00145         virtual const char* getName() = 0;
00146 
00147         virtual ArrayElement* clone() = 0;
00148    
00149 };
00150 
00152 #endif

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