X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..611c8051a2ae58a1c306675c8250865e12563834:/stargazer/plugins/configuration/rpcconfig/admins_methods.h?ds=sidebyside diff --git a/stargazer/plugins/configuration/rpcconfig/admins_methods.h b/stargazer/plugins/configuration/rpcconfig/admins_methods.h index e9775718..43c8073a 100644 --- a/stargazer/plugins/configuration/rpcconfig/admins_methods.h +++ b/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) { @@ -26,13 +29,13 @@ private: 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) { @@ -46,13 +49,13 @@ private: 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) { @@ -66,13 +69,13 @@ private: 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) { @@ -86,13 +89,13 @@ private: 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) { @@ -106,7 +109,5 @@ private: METHOD_ADMINS_GET & operator=(const METHOD_ADMINS_GET & rvalue); RPC_CONFIG * config; - ADMINS * admins; + STG::Admins * admins; }; - -#endif