#define PLUGIN_H
#include <string>
+#include <cstdint>
#include "noncopyable.h"
-#include "os_int.h"
#include "admins.h"
#include "users.h"
#include "tariffs.h"
class PLUGIN : private NONCOPYABLE {
public:
+ virtual ~PLUGIN() {}
virtual void SetUsers(USERS *) {}
virtual void SetTariffs(TARIFFS *) {}
virtual void SetAdmins(ADMINS *) {}
virtual int Start() = 0;
virtual int Stop() = 0;
- virtual int Reload() = 0;
+ virtual int Reload(const MODULE_SETTINGS &) = 0;
virtual bool IsRunning() = 0;
virtual const std::string & GetStrError() const = 0;
- virtual const std::string GetVersion() const = 0;
+ virtual std::string GetVersion() const = 0;
virtual uint16_t GetStartPosition() const = 0;
virtual uint16_t GetStopPosition() const = 0;
};