X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6b0c81934f762b8804d137375e21e7957446cefd..8c7a6befad791ac242f15233365893b18953a627:/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h?ds=inline diff --git a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.h index cb72bbf7..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 +{ -#include "stg/users.h" -#include "stg/tariffs.h" +struct Settings; +struct Users; +struct Tariffs; + +} // 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), @@ -35,8 +39,8 @@ private: METHOD_INFO(const METHOD_INFO & rvalue); METHOD_INFO & operator=(const METHOD_INFO & rvalue); - TARIFFS * tariffs; - USERS * users; + STG::Tariffs * tariffs; + STG::Users * users; size_t dayFee; const std::vector & dirNames; }; @@ -44,7 +48,7 @@ private: class METHOD_LOGIN : public xmlrpc_c::method { public: - METHOD_LOGIN(RPC_CONFIG * c) + explicit METHOD_LOGIN(RPC_CONFIG * c) : config(c) { } @@ -62,7 +66,7 @@ private: class METHOD_LOGOUT : public xmlrpc_c::method { public: - METHOD_LOGOUT(RPC_CONFIG * c) + explicit METHOD_LOGOUT(RPC_CONFIG * c) : config(c) { } @@ -76,5 +80,3 @@ private: RPC_CONFIG * config; }; - -#endif