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);
27 METHOD_USER_GET(const METHOD_USER_GET & rvalue);
28 METHOD_USER_GET & operator=(const METHOD_USER_GET & rvalue);
34 class METHOD_USER_ADD : public xmlrpc_c::method {
36 METHOD_USER_ADD(RPC_CONFIG * c,
45 void execute(xmlrpc_c::paramList const & paramList,
46 xmlrpc_c::value * const retvalP);
49 METHOD_USER_ADD(const METHOD_USER_ADD & rvalue);
50 METHOD_USER_ADD & operator=(const METHOD_USER_ADD & rvalue);
57 class METHOD_USER_DEL : public xmlrpc_c::method {
59 METHOD_USER_DEL(RPC_CONFIG * c,
68 void execute(xmlrpc_c::paramList const & paramList,
69 xmlrpc_c::value * const retvalP);
72 METHOD_USER_DEL(const METHOD_USER_DEL & rvalue);
73 METHOD_USER_DEL & operator=(const METHOD_USER_DEL & rvalue);
80 class METHOD_USERS_GET : public xmlrpc_c::method {
82 METHOD_USERS_GET(RPC_CONFIG * c,
89 void execute(xmlrpc_c::paramList const & paramList,
90 xmlrpc_c::value * const retvalP);
93 METHOD_USERS_GET(const METHOD_USERS_GET & rvalue);
94 METHOD_USERS_GET & operator=(const METHOD_USERS_GET & rvalue);
100 class METHOD_USER_CHG : public xmlrpc_c::method {
102 METHOD_USER_CHG(RPC_CONFIG * c,
115 void execute(xmlrpc_c::paramList const & paramList,
116 xmlrpc_c::value * const retvalP);
119 METHOD_USER_CHG(const METHOD_USER_CHG & rvalue);
120 METHOD_USER_CHG & operator=(const METHOD_USER_CHG & rvalue);
129 class METHOD_USER_CASH_ADD : public xmlrpc_c::method {
131 METHOD_USER_CASH_ADD(RPC_CONFIG * c,
142 void execute(xmlrpc_c::paramList const & paramList,
143 xmlrpc_c::value * const retvalP);
146 METHOD_USER_CASH_ADD(const METHOD_USER_CASH_ADD & rvalue);
147 METHOD_USER_CASH_ADD & operator=(const METHOD_USER_CASH_ADD & rvalue);
155 class METHOD_USER_CASH_SET : public xmlrpc_c::method {
157 METHOD_USER_CASH_SET(RPC_CONFIG * c,
168 void execute(xmlrpc_c::paramList const & paramList,
169 xmlrpc_c::value * const retvalP);
172 METHOD_USER_CASH_SET(const METHOD_USER_CASH_SET & rvalue);
173 METHOD_USER_CASH_SET & operator=(const METHOD_USER_CASH_SET & rvalue);
181 class METHOD_USER_TARIFF_CHANGE : public xmlrpc_c::method {
183 METHOD_USER_TARIFF_CHANGE(RPC_CONFIG * c,
196 void execute(xmlrpc_c::paramList const & paramList,
197 xmlrpc_c::value * const retvalP);
200 METHOD_USER_TARIFF_CHANGE(const METHOD_USER_TARIFF_CHANGE & rvalue);
201 METHOD_USER_TARIFF_CHANGE & operator=(const METHOD_USER_TARIFF_CHANGE & rvalue);
210 class METHOD_GET_ONLINE_IPS : public xmlrpc_c::method {
212 METHOD_GET_ONLINE_IPS(RPC_CONFIG * c,
219 void execute(xmlrpc_c::paramList const & paramList,
220 xmlrpc_c::value * const retvalP);
223 METHOD_GET_ONLINE_IPS(const METHOD_GET_ONLINE_IPS & rvalue);
224 METHOD_GET_ONLINE_IPS & operator=(const METHOD_GET_ONLINE_IPS & rvalue);
229 bool ParseNet(const std::string & net, IP_MASK & ipm) const;
232 class METHOD_GET_USER_AUTH_BY : public xmlrpc_c::method {
234 METHOD_GET_USER_AUTH_BY(RPC_CONFIG * c,
241 void execute(xmlrpc_c::paramList const & paramList,
242 xmlrpc_c::value * const retvalP);
245 METHOD_GET_USER_AUTH_BY(const METHOD_GET_ONLINE_IPS & rvalue);
246 METHOD_GET_USER_AUTH_BY & operator=(const METHOD_GET_ONLINE_IPS & rvalue);