X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ede91934442fd804d7b818971a44e3ad795cb01f..46b0747592074017ff0ea4b33d4a7194235886e5:/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h diff --git a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h deleted file mode 100644 index c9e5ace6..00000000 --- a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.h +++ /dev/null @@ -1,196 +0,0 @@ -#ifndef __USERS_METHODS_H__ -#define __USERS_METHODS_H__ - -#include -#include - -class RPC_CONFIG; -class ADMINS; -class TARIFFS; -class USERS; -class STORE; -class IP_MASK; - -class METHOD_USER_GET : public xmlrpc_c::method { -public: - METHOD_USER_GET(RPC_CONFIG * c, - USERS * u) - : config(c), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - USERS * users; -}; - -class METHOD_USER_ADD : public xmlrpc_c::method { -public: - METHOD_USER_ADD(RPC_CONFIG * c, - ADMINS * a, - USERS * u) - : config(c), - admins(a), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - ADMINS * admins; - USERS * users; -}; - -class METHOD_USER_DEL : public xmlrpc_c::method { -public: - METHOD_USER_DEL(RPC_CONFIG * c, - ADMINS * a, - USERS * u) - : config(c), - admins(a), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - ADMINS * admins; - USERS * users; -}; - -class METHOD_USERS_GET : public xmlrpc_c::method { -public: - METHOD_USERS_GET(RPC_CONFIG * c, - USERS * u) - : config(c), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - USERS * users; -}; - -class METHOD_USER_CHG : public xmlrpc_c::method { -public: - METHOD_USER_CHG(RPC_CONFIG * c, - ADMINS * a, - TARIFFS * t, - STORE * s, - USERS * u) - : config(c), - admins(a), - tariffs(t), - store(s), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - ADMINS * admins; - TARIFFS * tariffs; - STORE * store; - USERS * users; -}; - -class METHOD_USER_CASH_ADD : public xmlrpc_c::method { -public: - METHOD_USER_CASH_ADD(RPC_CONFIG * c, - ADMINS * a, - STORE * s, - USERS * u) - : config(c), - admins(a), - store(s), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - ADMINS * admins; - STORE * store; - USERS * users; -}; - -class METHOD_USER_CASH_SET : public xmlrpc_c::method { -public: - METHOD_USER_CASH_SET(RPC_CONFIG * c, - ADMINS * a, - STORE * s, - USERS * u) - : config(c), - admins(a), - store(s), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - ADMINS * admins; - STORE * store; - USERS * users; -}; - -class METHOD_USER_TARIFF_CHANGE : public xmlrpc_c::method { -public: - METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c, - ADMINS * a, - TARIFFS * t, - STORE * s, - USERS * u) - : config(c), - admins(a), - tariffs(t), - store(s), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - ADMINS * admins; - TARIFFS * tariffs; - STORE * store; - USERS * users; -}; - -class METHOD_GET_ONLINE_IPS : public xmlrpc_c::method { -public: - METHOD_GET_ONLINE_IPS(RPC_CONFIG * c, - USERS * u) - : config(c), - users(u) - { - } - - void execute(xmlrpc_c::paramList const & paramList, - xmlrpc_c::value * const retvalP); -private: - RPC_CONFIG * config; - USERS * users; - - bool ParseNet(const std::string & net, IP_MASK & ipm) const; -}; - -#endif