3 #include <xmlrpc-c/base.hpp>
4 #include <xmlrpc-c/registry.hpp>
19 class METHOD_USER_GET : public xmlrpc_c::method {
21 METHOD_USER_GET(RPC_CONFIG * c,
28 void execute(xmlrpc_c::paramList const & paramList,
29 xmlrpc_c::value * const retvalP);
32 METHOD_USER_GET(const METHOD_USER_GET & rvalue);
33 METHOD_USER_GET & operator=(const METHOD_USER_GET & rvalue);
39 class METHOD_USER_ADD : public xmlrpc_c::method {
41 METHOD_USER_ADD(RPC_CONFIG * c,
50 void execute(xmlrpc_c::paramList const & paramList,
51 xmlrpc_c::value * const retvalP);
54 METHOD_USER_ADD(const METHOD_USER_ADD & rvalue);
55 METHOD_USER_ADD & operator=(const METHOD_USER_ADD & rvalue);
62 class METHOD_USER_DEL : public xmlrpc_c::method {
64 METHOD_USER_DEL(RPC_CONFIG * c,
73 void execute(xmlrpc_c::paramList const & paramList,
74 xmlrpc_c::value * const retvalP);
77 METHOD_USER_DEL(const METHOD_USER_DEL & rvalue);
78 METHOD_USER_DEL & operator=(const METHOD_USER_DEL & rvalue);
85 class METHOD_USERS_GET : public xmlrpc_c::method {
87 METHOD_USERS_GET(RPC_CONFIG * c,
94 void execute(xmlrpc_c::paramList const & paramList,
95 xmlrpc_c::value * const retvalP);
98 METHOD_USERS_GET(const METHOD_USERS_GET & rvalue);
99 METHOD_USERS_GET & operator=(const METHOD_USERS_GET & rvalue);
105 class METHOD_USER_CHG : public xmlrpc_c::method {
107 METHOD_USER_CHG(RPC_CONFIG * c,
120 void execute(xmlrpc_c::paramList const & paramList,
121 xmlrpc_c::value * const retvalP);
124 METHOD_USER_CHG(const METHOD_USER_CHG & rvalue);
125 METHOD_USER_CHG & operator=(const METHOD_USER_CHG & rvalue);
128 STG::Admins * admins;
129 STG::Tariffs * tariffs;
134 class METHOD_USER_CASH_ADD : public xmlrpc_c::method {
136 METHOD_USER_CASH_ADD(RPC_CONFIG * c,
147 void execute(xmlrpc_c::paramList const & paramList,
148 xmlrpc_c::value * const retvalP);
151 METHOD_USER_CASH_ADD(const METHOD_USER_CASH_ADD & rvalue);
152 METHOD_USER_CASH_ADD & operator=(const METHOD_USER_CASH_ADD & rvalue);
155 STG::Admins * admins;
160 class METHOD_USER_CASH_SET : public xmlrpc_c::method {
162 METHOD_USER_CASH_SET(RPC_CONFIG * c,
173 void execute(xmlrpc_c::paramList const & paramList,
174 xmlrpc_c::value * const retvalP);
177 METHOD_USER_CASH_SET(const METHOD_USER_CASH_SET & rvalue);
178 METHOD_USER_CASH_SET & operator=(const METHOD_USER_CASH_SET & rvalue);
181 STG::Admins * admins;
186 class METHOD_USER_TARIFF_CHANGE : public xmlrpc_c::method {
188 METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c,
201 void execute(xmlrpc_c::paramList const & paramList,
202 xmlrpc_c::value * const retvalP);
205 METHOD_USER_TARIFF_CHANGE(const METHOD_USER_TARIFF_CHANGE & rvalue);
206 METHOD_USER_TARIFF_CHANGE & operator=(const METHOD_USER_TARIFF_CHANGE & rvalue);
209 STG::Admins * admins;
210 STG::Tariffs * tariffs;
215 class METHOD_GET_ONLINE_IPS : public xmlrpc_c::method {
217 METHOD_GET_ONLINE_IPS(RPC_CONFIG * c,
224 void execute(xmlrpc_c::paramList const & paramList,
225 xmlrpc_c::value * const retvalP);
228 METHOD_GET_ONLINE_IPS(const METHOD_GET_ONLINE_IPS & rvalue);
229 METHOD_GET_ONLINE_IPS & operator=(const METHOD_GET_ONLINE_IPS & rvalue);
234 bool ParseNet(const std::string & net, STG::IPMask & ipm) const;
237 class METHOD_GET_USER_AUTH_BY : public xmlrpc_c::method {
239 METHOD_GET_USER_AUTH_BY(RPC_CONFIG * c,
246 void execute(xmlrpc_c::paramList const & paramList,
247 xmlrpc_c::value * const retvalP);
250 METHOD_GET_USER_AUTH_BY(const METHOD_GET_ONLINE_IPS & rvalue);
251 METHOD_GET_USER_AUTH_BY & operator=(const METHOD_GET_ONLINE_IPS & rvalue);