X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..b1f2c74d7aca187772c2f009fda4a3043eb9686f:/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h?ds=inline diff --git a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h index ee8e656e..413e9aaf 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h @@ -4,10 +4,12 @@ #include #include -#include "../../../users.h" -#include "../../../user.h" - class RPC_CONFIG; +class ADMINS; +class TARIFFS; +class USERS; +class STORE; +struct IP_MASK; class METHOD_USER_GET : public xmlrpc_c::method { public: @@ -20,7 +22,11 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_GET(const METHOD_USER_GET & rvalue); + METHOD_USER_GET & operator=(const METHOD_USER_GET & rvalue); + RPC_CONFIG * config; USERS * users; }; @@ -38,7 +44,11 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_ADD(const METHOD_USER_ADD & rvalue); + METHOD_USER_ADD & operator=(const METHOD_USER_ADD & rvalue); + RPC_CONFIG * config; ADMINS * admins; USERS * users; @@ -57,7 +67,11 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_DEL(const METHOD_USER_DEL & rvalue); + METHOD_USER_DEL & operator=(const METHOD_USER_DEL & rvalue); + RPC_CONFIG * config; ADMINS * admins; USERS * users; @@ -74,7 +88,11 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USERS_GET(const METHOD_USERS_GET & rvalue); + METHOD_USERS_GET & operator=(const METHOD_USERS_GET & rvalue); + RPC_CONFIG * config; USERS * users; }; @@ -83,10 +101,12 @@ class METHOD_USER_CHG : public xmlrpc_c::method { public: METHOD_USER_CHG(RPC_CONFIG * c, ADMINS * a, - BASE_STORE * s, + TARIFFS * t, + STORE * s, USERS * u) : config(c), admins(a), + tariffs(t), store(s), users(u) { @@ -94,10 +114,15 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_CHG(const METHOD_USER_CHG & rvalue); + METHOD_USER_CHG & operator=(const METHOD_USER_CHG & rvalue); + RPC_CONFIG * config; ADMINS * admins; - BASE_STORE * store; + TARIFFS * tariffs; + STORE * store; USERS * users; }; @@ -105,7 +130,7 @@ class METHOD_USER_CASH_ADD : public xmlrpc_c::method { public: METHOD_USER_CASH_ADD(RPC_CONFIG * c, ADMINS * a, - BASE_STORE * s, + STORE * s, USERS * u) : config(c), admins(a), @@ -116,10 +141,14 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_CASH_ADD(const METHOD_USER_CASH_ADD & rvalue); + METHOD_USER_CASH_ADD & operator=(const METHOD_USER_CASH_ADD & rvalue); + RPC_CONFIG * config; ADMINS * admins; - BASE_STORE * store; + STORE * store; USERS * users; }; @@ -127,7 +156,7 @@ class METHOD_USER_CASH_SET : public xmlrpc_c::method { public: METHOD_USER_CASH_SET(RPC_CONFIG * c, ADMINS * a, - BASE_STORE * s, + STORE * s, USERS * u) : config(c), admins(a), @@ -138,10 +167,14 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_CASH_SET(const METHOD_USER_CASH_SET & rvalue); + METHOD_USER_CASH_SET & operator=(const METHOD_USER_CASH_SET & rvalue); + RPC_CONFIG * config; ADMINS * admins; - BASE_STORE * store; + STORE * store; USERS * users; }; @@ -150,7 +183,7 @@ public: METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c, ADMINS * a, TARIFFS * t, - BASE_STORE * s, + STORE * s, USERS * u) : config(c), admins(a), @@ -162,11 +195,15 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_USER_TARIFF_CHANGE(const METHOD_USER_TARIFF_CHANGE & rvalue); + METHOD_USER_TARIFF_CHANGE & operator=(const METHOD_USER_TARIFF_CHANGE & rvalue); + RPC_CONFIG * config; ADMINS * admins; TARIFFS * tariffs; - BASE_STORE * store; + STORE * store; USERS * users; }; @@ -181,7 +218,11 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_GET_ONLINE_IPS(const METHOD_GET_ONLINE_IPS & rvalue); + METHOD_GET_ONLINE_IPS & operator=(const METHOD_GET_ONLINE_IPS & rvalue); + RPC_CONFIG * config; USERS * users;