X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/91b5ae18ae465d0887785aab6dc0eb7abc0d5488..1c324d5b2380a68f209e65969079677dbaf1c511:/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h diff --git a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h index a404839b..709a0666 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h +++ b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h @@ -1,24 +1,28 @@ -#ifndef __INFO_METHODS_H__ -#define __INFO_METHODS_H__ +#pragma once + +#include +#include #include #include -#include -#include +namespace STG +{ + +struct Settings; +struct Users; +struct Tariffs; -#include "users.h" -#include "tariffs.h" +} // Forward declaration class RPC_CONFIG; -class SETTINGS; class METHOD_INFO : public xmlrpc_c::method { public: - METHOD_INFO(TARIFFS * t, - USERS * u, + METHOD_INFO(STG::Tariffs * t, + STG::Users * u, size_t df, const std::vector & dn) : tariffs(t), @@ -30,9 +34,13 @@ public: void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: - TARIFFS * tariffs; - USERS * users; + METHOD_INFO(const METHOD_INFO & rvalue); + METHOD_INFO & operator=(const METHOD_INFO & rvalue); + + STG::Tariffs * tariffs; + STG::Users * users; size_t dayFee; const std::vector & dirNames; }; @@ -40,29 +48,35 @@ private: class METHOD_LOGIN : public xmlrpc_c::method { public: - METHOD_LOGIN(RPC_CONFIG * c) + explicit METHOD_LOGIN(RPC_CONFIG * c) : config(c) { } void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_LOGIN(const METHOD_LOGIN & rvalue); + METHOD_LOGIN & operator=(const METHOD_LOGIN & rvalue); + RPC_CONFIG * config; }; class METHOD_LOGOUT : public xmlrpc_c::method { public: - METHOD_LOGOUT(RPC_CONFIG * c) + explicit METHOD_LOGOUT(RPC_CONFIG * c) : config(c) { } void execute(xmlrpc_c::paramList const & paramList, xmlrpc_c::value * const retvalP); + private: + METHOD_LOGOUT(const METHOD_LOGOUT & rvalue); + METHOD_LOGOUT & operator=(const METHOD_LOGOUT & rvalue); + RPC_CONFIG * config; }; - -#endif