00001 /*------------------------------------------------------------------------------ 00002 00003 Copyright (c) 2004 Media Development Loan Fund 00004 00005 This file is part of the Campcaster project. 00006 https://www.campware.org/ 00007 To report bugs, send an e-mail to [email protected] 00008 00009 Campcaster is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2 of the License, or 00012 (at your option) any later version. 00013 00014 Campcaster is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with Campcaster; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 00023 00024 Author : $Author: fgerlits $ 00025 Version : $Revision: 2329 $ 00026 Location : $URL: svn://code.campware.org/campcaster/trunk/campcaster/src/products/scheduler/src/CreateBackupCloseMethod.h $ 00027 00028 ------------------------------------------------------------------------------*/ 00029 #ifndef CreateBackupCloseMethod_h 00030 #define CreateBackupCloseMethod_h 00031 00032 #ifndef __cplusplus 00033 #error This is a C++ include file 00034 #endif 00035 00036 00037 /* ============================================================ include files */ 00038 00039 #ifdef HAVE_CONFIG_H 00040 #include "configure.h" 00041 #endif 00042 00043 #include <stdexcept> 00044 #include <string> 00045 #include <XmlRpcServerMethod.h> 00046 #include <XmlRpcValue.h> 00047 #include <XmlRpcException.h> 00048 00049 #include "LiveSupport/Core/Ptr.h" 00050 00051 00052 namespace LiveSupport { 00053 namespace Scheduler { 00054 00055 using namespace LiveSupport; 00056 using namespace LiveSupport::Core; 00057 00058 /* ================================================================ constants */ 00059 00060 00061 /* =================================================================== macros */ 00062 00063 00064 /* =============================================================== data types */ 00065 00088 class CreateBackupCloseMethod : public XmlRpc::XmlRpcServerMethod 00089 { 00090 private: 00095 static const std::string methodName; 00096 00100 static const int errorId; 00101 00102 00103 public: 00107 CreateBackupCloseMethod(void) throw () 00108 : XmlRpc::XmlRpcServerMethod(methodName) 00109 { 00110 } 00111 00117 CreateBackupCloseMethod( 00118 Ptr<XmlRpc::XmlRpcServer>::Ref xmlRpcServer) 00119 throw (); 00120 00127 void 00128 execute(XmlRpc::XmlRpcValue & parameters, 00129 XmlRpc::XmlRpcValue & returnValue) 00130 throw (XmlRpc::XmlRpcException); 00131 }; 00132 00133 00134 /* ================================================= external data structures */ 00135 00136 00137 /* ====================================================== function prototypes */ 00138 00139 00140 } // namespace Scheduler 00141 } // namespace LiveSupport 00142 00143 #endif // CreateBackupCloseMethod_h 00144