-#include "rpcconfig.h"
-
#include <cstdlib>
#include <csignal>
+
+#include "rpcconfig.h"
+
+#include "admin.h"
+#include "module_settings.h"
+#include "common.h"
+
#include "info_methods.h"
#include "users_methods.h"
#include "tariffs_methods.h"
#include "admins_methods.h"
#include "messages_methods.h"
-class RPC_CONFIG_CREATOR
-{
+class RPC_CONFIG_CREATOR {
private:
RPC_CONFIG * rpcconfig;
RPC_CONFIG_CREATOR()
: rpcconfig(new RPC_CONFIG())
{
- };
+ }
~RPC_CONFIG_CREATOR()
{
delete rpcconfig;
- };
+ }
RPC_CONFIG * GetPlugin()
{
return rpcconfig;
- };
+ }
};
RPC_CONFIG_CREATOR rpcc;
{
}
-int RPC_CONFIG_SETTINGS::ParseIntInRange(const string & str,
+int RPC_CONFIG_SETTINGS::ParseIntInRange(const std::string & str,
int min,
int max,
int * val)
}
RPC_CONFIG::RPC_CONFIG()
- : rpcServer(NULL)
+ : users(NULL),
+ admins(NULL),
+ tariffs(NULL),
+ store(NULL),
+ stgSettings(NULL),
+ rpcServer(NULL),
+ running(false),
+ stopped(true)
{
-
}
RPC_CONFIG::~RPC_CONFIG()
xmlrpc_c::methodPtr const methodChgUserPtr(new METHOD_USER_CHG(
this,
admins,
+ tariffs,
store,
users
));