1 #ifndef __USERS_METHODS_H__
2 #define __USERS_METHODS_H__
4 #include <xmlrpc-c/base.hpp>
5 #include <xmlrpc-c/registry.hpp>
7 #include "../../../users.h"
8 #include "../../../user.h"
12 class METHOD_USER_GET : public xmlrpc_c::method {
14 METHOD_USER_GET(RPC_CONFIG * c,
21 void execute(xmlrpc_c::paramList const & paramList,
22 xmlrpc_c::value * const retvalP);
28 class METHOD_USER_ADD : public xmlrpc_c::method {
30 METHOD_USER_ADD(RPC_CONFIG * c,
39 void execute(xmlrpc_c::paramList const & paramList,
40 xmlrpc_c::value * const retvalP);
47 class METHOD_USER_DEL : public xmlrpc_c::method {
49 METHOD_USER_DEL(RPC_CONFIG * c,
58 void execute(xmlrpc_c::paramList const & paramList,
59 xmlrpc_c::value * const retvalP);
66 class METHOD_USERS_GET : public xmlrpc_c::method {
68 METHOD_USERS_GET(RPC_CONFIG * c,
75 void execute(xmlrpc_c::paramList const & paramList,
76 xmlrpc_c::value * const retvalP);
82 class METHOD_USER_CHG : public xmlrpc_c::method {
84 METHOD_USER_CHG(RPC_CONFIG * c,
95 void execute(xmlrpc_c::paramList const & paramList,
96 xmlrpc_c::value * const retvalP);
104 class METHOD_USER_CASH_ADD : public xmlrpc_c::method {
106 METHOD_USER_CASH_ADD(RPC_CONFIG * c,
117 void execute(xmlrpc_c::paramList const & paramList,
118 xmlrpc_c::value * const retvalP);
126 class METHOD_USER_CASH_SET : public xmlrpc_c::method {
128 METHOD_USER_CASH_SET(RPC_CONFIG * c,
139 void execute(xmlrpc_c::paramList const & paramList,
140 xmlrpc_c::value * const retvalP);
148 class METHOD_USER_TARIFF_CHANGE : public xmlrpc_c::method {
150 METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c,
163 void execute(xmlrpc_c::paramList const & paramList,
164 xmlrpc_c::value * const retvalP);
173 class METHOD_GET_ONLINE_IPS : public xmlrpc_c::method {
175 METHOD_GET_ONLINE_IPS(RPC_CONFIG * c,
182 void execute(xmlrpc_c::paramList const & paramList,
183 xmlrpc_c::value * const retvalP);
188 bool ParseNet(const std::string & net, IP_MASK & ipm) const;