1 #ifndef __USERS_METHODS_H__
2 #define __USERS_METHODS_H__
4 #include <xmlrpc-c/base.hpp>
5 #include <xmlrpc-c/registry.hpp>
14 class METHOD_USER_GET : public xmlrpc_c::method {
16 METHOD_USER_GET(RPC_CONFIG * c,
23 void execute(xmlrpc_c::paramList const & paramList,
24 xmlrpc_c::value * const retvalP);
30 class METHOD_USER_ADD : public xmlrpc_c::method {
32 METHOD_USER_ADD(RPC_CONFIG * c,
41 void execute(xmlrpc_c::paramList const & paramList,
42 xmlrpc_c::value * const retvalP);
49 class METHOD_USER_DEL : public xmlrpc_c::method {
51 METHOD_USER_DEL(RPC_CONFIG * c,
60 void execute(xmlrpc_c::paramList const & paramList,
61 xmlrpc_c::value * const retvalP);
68 class METHOD_USERS_GET : public xmlrpc_c::method {
70 METHOD_USERS_GET(RPC_CONFIG * c,
77 void execute(xmlrpc_c::paramList const & paramList,
78 xmlrpc_c::value * const retvalP);
84 class METHOD_USER_CHG : public xmlrpc_c::method {
86 METHOD_USER_CHG(RPC_CONFIG * c,
99 void execute(xmlrpc_c::paramList const & paramList,
100 xmlrpc_c::value * const retvalP);
109 class METHOD_USER_CASH_ADD : public xmlrpc_c::method {
111 METHOD_USER_CASH_ADD(RPC_CONFIG * c,
122 void execute(xmlrpc_c::paramList const & paramList,
123 xmlrpc_c::value * const retvalP);
131 class METHOD_USER_CASH_SET : public xmlrpc_c::method {
133 METHOD_USER_CASH_SET(RPC_CONFIG * c,
144 void execute(xmlrpc_c::paramList const & paramList,
145 xmlrpc_c::value * const retvalP);
153 class METHOD_USER_TARIFF_CHANGE : public xmlrpc_c::method {
155 METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c,
168 void execute(xmlrpc_c::paramList const & paramList,
169 xmlrpc_c::value * const retvalP);
178 class METHOD_GET_ONLINE_IPS : public xmlrpc_c::method {
180 METHOD_GET_ONLINE_IPS(RPC_CONFIG * c,
187 void execute(xmlrpc_c::paramList const & paramList,
188 xmlrpc_c::value * const retvalP);
193 bool ParseNet(const std::string & net, IP_MASK & ipm) const;