X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c26f4f6b17d688b3defb790486daf42392068aa3..80aca6d78d4ff5d514216fe96c44e2ee75c4e933:/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 d353c96d..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 "stg/admins.h" -#include "stg/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