1 #ifndef __USERS_METHODS_H__
2 #define __USERS_METHODS_H__
4 #include <xmlrpc-c/base.hpp>
5 #include <xmlrpc-c/registry.hpp>
15 class METHOD_USER_GET : public xmlrpc_c::method {
17 METHOD_USER_GET(RPC_CONFIG * c,
24 void execute(xmlrpc_c::paramList const & paramList,
25 xmlrpc_c::value * const retvalP);
31 class METHOD_USER_ADD : public xmlrpc_c::method {
33 METHOD_USER_ADD(RPC_CONFIG * c,
42 void execute(xmlrpc_c::paramList const & paramList,
43 xmlrpc_c::value * const retvalP);
50 class METHOD_USER_DEL : public xmlrpc_c::method {
52 METHOD_USER_DEL(RPC_CONFIG * c,
61 void execute(xmlrpc_c::paramList const & paramList,
62 xmlrpc_c::value * const retvalP);
69 class METHOD_USERS_GET : public xmlrpc_c::method {
71 METHOD_USERS_GET(RPC_CONFIG * c,
78 void execute(xmlrpc_c::paramList const & paramList,
79 xmlrpc_c::value * const retvalP);
85 class METHOD_USER_CHG : public xmlrpc_c::method {
87 METHOD_USER_CHG(RPC_CONFIG * c,
100 void execute(xmlrpc_c::paramList const & paramList,
101 xmlrpc_c::value * const retvalP);
110 class METHOD_USER_CASH_ADD : public xmlrpc_c::method {
112 METHOD_USER_CASH_ADD(RPC_CONFIG * c,
123 void execute(xmlrpc_c::paramList const & paramList,
124 xmlrpc_c::value * const retvalP);
132 class METHOD_USER_CASH_SET : public xmlrpc_c::method {
134 METHOD_USER_CASH_SET(RPC_CONFIG * c,
145 void execute(xmlrpc_c::paramList const & paramList,
146 xmlrpc_c::value * const retvalP);
154 class METHOD_USER_TARIFF_CHANGE : public xmlrpc_c::method {
156 METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c,
169 void execute(xmlrpc_c::paramList const & paramList,
170 xmlrpc_c::value * const retvalP);
179 class METHOD_GET_ONLINE_IPS : public xmlrpc_c::method {
181 METHOD_GET_ONLINE_IPS(RPC_CONFIG * c,
188 void execute(xmlrpc_c::paramList const & paramList,
189 xmlrpc_c::value * const retvalP);
194 bool ParseNet(const std::string & net, IP_MASK & ipm) const;