void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_ADMIN_GET(const METHOD_ADMIN_GET & rvalue);
+ METHOD_ADMIN_GET & operator=(const METHOD_ADMIN_GET & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_ADMIN_ADD(const METHOD_ADMIN_ADD & rvalue);
+ METHOD_ADMIN_ADD & operator=(const METHOD_ADMIN_ADD & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_ADMIN_DEL(const METHOD_ADMIN_DEL & rvalue);
+ METHOD_ADMIN_DEL & operator=(const METHOD_ADMIN_DEL & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_ADMIN_CHG(const METHOD_ADMIN_CHG & rvalue);
+ METHOD_ADMIN_CHG & operator=(const METHOD_ADMIN_CHG & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_ADMINS_GET(const METHOD_ADMINS_GET & rvalue);
+ METHOD_ADMINS_GET & operator=(const METHOD_ADMINS_GET & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_INFO(const METHOD_INFO & rvalue);
+ METHOD_INFO & operator=(const METHOD_INFO & rvalue);
+
TARIFFS * tariffs;
USERS * users;
size_t dayFee;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_LOGIN(const METHOD_LOGIN & rvalue);
+ METHOD_LOGIN & operator=(const METHOD_LOGIN & rvalue);
+
RPC_CONFIG * config;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_LOGOUT(const METHOD_LOGOUT & rvalue);
+ METHOD_LOGOUT & operator=(const METHOD_LOGOUT & rvalue);
+
RPC_CONFIG * config;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_MESSAGE_SEND(const METHOD_MESSAGE_SEND & rvalue);
+ METHOD_MESSAGE_SEND & operator=(const METHOD_MESSAGE_SEND & rvalue);
+
RPC_CONFIG * config;
USERS * users;
};
}
RPC_CONFIG::RPC_CONFIG()
- : users(NULL),
+ : errorStr(),
+ rpcConfigSettings(),
+ users(NULL),
admins(NULL),
tariffs(NULL),
store(NULL),
+ settings(),
+ rpcRegistry(),
rpcServer(NULL),
running(false),
stopped(true),
- dayFee(0)
+ tid(),
+ cookies(),
+ dayFee(0),
+ dirNames()
{
}
{
public:
RPC_CONFIG_SETTINGS();
- virtual ~RPC_CONFIG_SETTINGS() {};
- const std::string & GetStrError() const { return errorStr; };
+ virtual ~RPC_CONFIG_SETTINGS() {}
+ const std::string & GetStrError() const { return errorStr; }
int ParseSettings(const MODULE_SETTINGS & s);
- uint16_t GetPort() const { return port; };
- double GetCookieTimeout() const { return cookieTimeout; };
+ uint16_t GetPort() const { return port; }
+ double GetCookieTimeout() const { return cookieTimeout; }
+
private:
std::string errorStr;
int port;
struct ADMIN_INFO
{
+ ADMIN_INFO()
+ : admin(),
+ accessTime(0),
+ priviledges()
+ {}
+
std::string admin;
time_t accessTime;
PRIV priviledges;
bool LogoutAdmin(const std::string & cookie);
private:
+ RPC_CONFIG(const RPC_CONFIG & rvalue);
+ RPC_CONFIG & operator=(const RPC_CONFIG & rvalue);
+
static void * Run(void *);
std::string GetCookie() const;
void InitiateRegistry();
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_TARIFF_GET(const METHOD_TARIFF_GET & rvalue);
+ METHOD_TARIFF_GET & operator=(const METHOD_TARIFF_GET & rvalue);
+
RPC_CONFIG * config;
TARIFFS * tariffs;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_TARIFF_CHG(const METHOD_TARIFF_CHG & rvalue);
+ METHOD_TARIFF_CHG & operator=(const METHOD_TARIFF_CHG & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
TARIFFS * tariffs;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr);
+
private:
+ METHOD_TARIFFS_GET(const METHOD_TARIFFS_GET & rvalue);
+ METHOD_TARIFFS_GET & operator=(const METHOD_TARIFFS_GET & rvalue);
+
RPC_CONFIG * config;
TARIFFS * tariffs;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_TARIFF_ADD(const METHOD_TARIFF_ADD & rvalue);
+ METHOD_TARIFF_ADD & operator=(const METHOD_TARIFF_ADD & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
TARIFFS * tariffs;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_TARIFF_DEL(const METHOD_TARIFF_DEL & rvalue);
+ METHOD_TARIFF_DEL & operator=(const METHOD_TARIFF_DEL & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
TARIFFS * tariffs;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_GET(const METHOD_USER_GET & rvalue);
+ METHOD_USER_GET & operator=(const METHOD_USER_GET & rvalue);
+
RPC_CONFIG * config;
USERS * users;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_ADD(const METHOD_USER_ADD & rvalue);
+ METHOD_USER_ADD & operator=(const METHOD_USER_ADD & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
USERS * users;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_DEL(const METHOD_USER_DEL & rvalue);
+ METHOD_USER_DEL & operator=(const METHOD_USER_DEL & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
USERS * users;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USERS_GET(const METHOD_USERS_GET & rvalue);
+ METHOD_USERS_GET & operator=(const METHOD_USERS_GET & rvalue);
+
RPC_CONFIG * config;
USERS * users;
};
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_CHG(const METHOD_USER_CHG & rvalue);
+ METHOD_USER_CHG & operator=(const METHOD_USER_CHG & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
TARIFFS * tariffs;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_CASH_ADD(const METHOD_USER_CASH_ADD & rvalue);
+ METHOD_USER_CASH_ADD & operator=(const METHOD_USER_CASH_ADD & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
STORE * store;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_CASH_SET(const METHOD_USER_CASH_SET & rvalue);
+ METHOD_USER_CASH_SET & operator=(const METHOD_USER_CASH_SET & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
STORE * store;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_USER_TARIFF_CHANGE(const METHOD_USER_TARIFF_CHANGE & rvalue);
+ METHOD_USER_TARIFF_CHANGE & operator=(const METHOD_USER_TARIFF_CHANGE & rvalue);
+
RPC_CONFIG * config;
ADMINS * admins;
TARIFFS * tariffs;
void execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalP);
+
private:
+ METHOD_GET_ONLINE_IPS(const METHOD_GET_ONLINE_IPS & rvalue);
+ METHOD_GET_ONLINE_IPS & operator=(const METHOD_GET_ONLINE_IPS & rvalue);
+
RPC_CONFIG * config;
USERS * users;