X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/bdd487e027c6f6c752eacc71aa75055e1323cd7f..51998949e60e2a7e86e4393b315cfb76a58ca80d:/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h index 44941baa..43c8073a 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h @@ -1,18 +1,21 @@ -#ifndef __ADMINS_METHODS_H__ -#define __ADMINS_METHODS_H__ +#pragma once #include #include -#include "admins.h" -#include "admin.h" +namespace STG +{ + +struct Admins; + +} class RPC_CONFIG; class METHOD_ADMIN_GET : public xmlrpc_c::method { public: METHOD_ADMIN_GET(RPC_CONFIG * c, - ADMINS * a) + STG::Admins * a) : config(c), admins(a) { @@ -20,15 +23,19 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_ADMIN_GET(const METHOD_ADMIN_GET & rvalue); + METHOD_ADMIN_GET & operator=(const METHOD_ADMIN_GET & rvalue); + RPC_CONFIG * config; - ADMINS * admins; + STG::Admins * admins; }; class METHOD_ADMIN_ADD : public xmlrpc_c::method { public: METHOD_ADMIN_ADD(RPC_CONFIG * c, - ADMINS * a) + STG::Admins * a) : config(c), admins(a) { @@ -36,15 +43,19 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_ADMIN_ADD(const METHOD_ADMIN_ADD & rvalue); + METHOD_ADMIN_ADD & operator=(const METHOD_ADMIN_ADD & rvalue); + RPC_CONFIG * config; - ADMINS * admins; + STG::Admins * admins; }; class METHOD_ADMIN_DEL : public xmlrpc_c::method { public: METHOD_ADMIN_DEL(RPC_CONFIG * c, - ADMINS * a) + STG::Admins * a) : config(c), admins(a) { @@ -52,15 +63,19 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_ADMIN_DEL(const METHOD_ADMIN_DEL & rvalue); + METHOD_ADMIN_DEL & operator=(const METHOD_ADMIN_DEL & rvalue); + RPC_CONFIG * config; - ADMINS * admins; + STG::Admins * admins; }; class METHOD_ADMIN_CHG : public xmlrpc_c::method { public: METHOD_ADMIN_CHG(RPC_CONFIG * c, - ADMINS * a) + STG::Admins * a) : config(c), admins(a) { @@ -68,15 +83,19 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_ADMIN_CHG(const METHOD_ADMIN_CHG & rvalue); + METHOD_ADMIN_CHG & operator=(const METHOD_ADMIN_CHG & rvalue); + RPC_CONFIG * config; - ADMINS * admins; + STG::Admins * admins; }; class METHOD_ADMINS_GET : public xmlrpc_c::method { public: METHOD_ADMINS_GET(RPC_CONFIG * c, - ADMINS * a) + STG::Admins * a) : config(c), admins(a) { @@ -84,9 +103,11 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_ADMINS_GET(const METHOD_ADMINS_GET & rvalue); + METHOD_ADMINS_GET & operator=(const METHOD_ADMINS_GET & rvalue); + RPC_CONFIG * config; - ADMINS * admins; + STG::Admins * admins; }; - -#endif