-#ifndef __INFO_METHODS_H__
-#define __INFO_METHODS_H__
+#pragma once
+
+#include <xmlrpc-c/base.hpp>
+#include <xmlrpc-c/registry.hpp>
#include <string>
#include <vector>
-#include <xmlrpc-c/base.hpp>
-#include <xmlrpc-c/registry.hpp>
+namespace STG
+{
-#include "stg/users.h"
-#include "stg/tariffs.h"
+struct Settings;
+struct Users;
+struct Tariffs;
+
+}
// Forward declaration
class RPC_CONFIG;
-class SETTINGS;
class METHOD_INFO : public xmlrpc_c::method
{
public:
- METHOD_INFO(TARIFFS * t,
- USERS * u,
+ METHOD_INFO(STG::Tariffs * t,
+ STG::Users * u,
size_t df,
const std::vector<std::string> & dn)
: tariffs(t),
METHOD_INFO(const METHOD_INFO & rvalue);
METHOD_INFO & operator=(const METHOD_INFO & rvalue);
- TARIFFS * tariffs;
- USERS * users;
+ STG::Tariffs * tariffs;
+ STG::Users * users;
size_t dayFee;
const std::vector<std::string> & dirNames;
};
class METHOD_LOGIN : public xmlrpc_c::method
{
public:
- METHOD_LOGIN(RPC_CONFIG * c)
+ explicit METHOD_LOGIN(RPC_CONFIG * c)
: config(c)
{
}
class METHOD_LOGOUT : public xmlrpc_c::method
{
public:
- METHOD_LOGOUT(RPC_CONFIG * c)
+ explicit METHOD_LOGOUT(RPC_CONFIG * c)
: config(c)
{
}
RPC_CONFIG * config;
};
-
-#endif