X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6b0c81934f762b8804d137375e21e7957446cefd..c02633d77cb05a5deb05440d77b12ccc5bc19b85:/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h?ds=inline diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h index d43840d0..4f4d6680 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.h @@ -1,18 +1,23 @@ -#ifndef __TARIFFS_METHODS_H__ -#define __TARIFFS_METHODS_H__ +#pragma once #include #include +namespace STG +{ + +struct Tariffs; +struct Users; +struct Admins; + +} + class RPC_CONFIG; -class TARIFFS; -class USERS; -class ADMINS; class METHOD_TARIFF_GET : public xmlrpc_c::method { public: METHOD_TARIFF_GET(RPC_CONFIG * c, - TARIFFS * t) + STG::Tariffs * t) : config(c), tariffs(t) { @@ -26,14 +31,14 @@ private: 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) @@ -48,14 +53,14 @@ private: 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) { @@ -69,14 +74,14 @@ private: 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) @@ -91,16 +96,16 @@ private: 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), @@ -116,9 +121,7 @@ private: 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