X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6b0c81934f762b8804d137375e21e7957446cefd..8bfc0bdce2bf4f53ac2c072e7a44e9a7d3b3cca8:/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h diff --git a/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/admins_methods.h index e9775718..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) { @@ -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