src/include/common/syncml/core/ResponseCommand.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_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 Nov 9 12:21:25 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2