X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..1c324d5b2380a68f209e65969079677dbaf1c511:/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h index fdd788d4..4f4d6680 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h @@ -1,17 +1,23 @@ -#ifndef __TARIFFS_METHODS_H__ -#define __TARIFFS_METHODS_H__ +#pragma once #include #include -#include "../../../tariffs.h" +namespace STG +{ + +struct Tariffs; +struct Users; +struct Admins; + +} class RPC_CONFIG; class METHOD_TARIFF_GET : public xmlrpc_c::method { public: METHOD_TARIFF_GET(RPC_CONFIG * c, - TARIFFS * t) + STG::Tariffs * t) : config(c), tariffs(t) { @@ -19,16 +25,20 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_TARIFF_GET(const METHOD_TARIFF_GET & rvalue); + METHOD_TARIFF_GET & operator=(const METHOD_TARIFF_GET & rvalue); + RPC_CONFIG * config; - TARIFFS * tariffs; + STG::Tariffs * tariffs; }; class METHOD_TARIFF_CHG : public xmlrpc_c::method { public: METHOD_TARIFF_CHG(RPC_CONFIG * c, - ADMINS * a, - TARIFFS * t) + STG::Admins * a, + STG::Tariffs * t) : config(c), admins(a), tariffs(t) @@ -37,16 +47,20 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_TARIFF_CHG(const METHOD_TARIFF_CHG & rvalue); + METHOD_TARIFF_CHG & operator=(const METHOD_TARIFF_CHG & rvalue); + RPC_CONFIG * config; - ADMINS * admins; - TARIFFS * tariffs; + STG::Admins * admins; + STG::Tariffs * tariffs; }; class METHOD_TARIFFS_GET : public xmlrpc_c::method { public: METHOD_TARIFFS_GET(RPC_CONFIG * c, - TARIFFS * t) + STG::Tariffs * t) : config(c), tariffs(t) { @@ -54,16 +68,20 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalPtr); + private: + METHOD_TARIFFS_GET(const METHOD_TARIFFS_GET & rvalue); + METHOD_TARIFFS_GET & operator=(const METHOD_TARIFFS_GET & rvalue); + RPC_CONFIG * config; - TARIFFS * tariffs; + STG::Tariffs * tariffs; }; class METHOD_TARIFF_ADD : public xmlrpc_c::method { public: METHOD_TARIFF_ADD(RPC_CONFIG * c, - ADMINS * a, - TARIFFS * t) + STG::Admins * a, + STG::Tariffs * t) : config(c), admins(a), tariffs(t) @@ -72,18 +90,22 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_TARIFF_ADD(const METHOD_TARIFF_ADD & rvalue); + METHOD_TARIFF_ADD & operator=(const METHOD_TARIFF_ADD & rvalue); + RPC_CONFIG * config; - ADMINS * admins; - TARIFFS * tariffs; + STG::Admins * admins; + STG::Tariffs * tariffs; }; class METHOD_TARIFF_DEL : public xmlrpc_c::method { public: METHOD_TARIFF_DEL(RPC_CONFIG * c, - ADMINS * a, - TARIFFS * t, - USERS * u) + STG::Admins * a, + STG::Tariffs * t, + STG::Users * u) : config(c), admins(a), tariffs(t), @@ -93,11 +115,13 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_TARIFF_DEL(const METHOD_TARIFF_DEL & rvalue); + METHOD_TARIFF_DEL & operator=(const METHOD_TARIFF_DEL & rvalue); + RPC_CONFIG * config; - ADMINS * admins; - TARIFFS * tariffs; - USERS * users; + STG::Admins * admins; + STG::Tariffs * tariffs; + STG::Users * users; }; - -#endif