$Date: 2009/03/18 17:24:57 $
*/
-#ifndef BASE_AUTH_H
-#define BASE_AUTH_H
+#ifndef AUTH_H
+#define AUTH_H
-#include <time.h>
-#include <string>
-
-#include "base_plugin.h"
+#include "plugin.h"
#include "stg_message.h"
+#include "noncopyable.h"
-using namespace std;
-
-//-----------------------------------------------------------------------------
-class BASE_AUTH : public BASE_PLUGIN
-{
+class AUTH : public PLUGIN, private NONCOPYABLE {
public:
- virtual ~BASE_AUTH() {};
virtual int SendMessage(const STG_MSG & msg, uint32_t ip) const = 0;
};
-//-----------------------------------------------------------------------------
-#endif
-
+#endif
*/
-#ifndef BASE_PLUGIN_H
-#define BASE_PLUGIN_H
+#ifndef PLUGIN_H
+#define PLUGIN_H
#include <string>
-#include "base_settings.h"
+
#include "noncopyable.h"
#include "os_int.h"
+#include "admins.h"
+#include "users.h"
+#include "tariffs.h"
-using namespace std;
-
-class ADMINS;
-class USERS;
-class TARIFFS;
class TRAFFCOUNTER;
class SETTINGS;
class BASE_STORE;
+class MODULE_SETTINGS;
-//-----------------------------------------------------------------------------
-class BASE_PLUGIN : private NONCOPYABLE
+class PLUGIN : private NONCOPYABLE
{
public:
- virtual ~BASE_PLUGIN(){};
- virtual void SetUsers(USERS * u) = 0;
- virtual void SetTariffs(TARIFFS * t) = 0;
- virtual void SetAdmins(ADMINS * a) = 0;
- virtual void SetTraffcounter(TRAFFCOUNTER * tc) = 0;
- virtual void SetStore(BASE_STORE * st) = 0;
- virtual void SetStgSettings(const SETTINGS * s) = 0;
- virtual void SetSettings(const MODULE_SETTINGS & s) = 0;
- virtual int ParseSettings() = 0;
+ virtual ~PLUGIN() = 0;
+ virtual void SetUsers(USERS * u) = 0;
+ virtual void SetTariffs(TARIFFS * t) = 0;
+ virtual void SetAdmins(ADMINS * a) = 0;
+ virtual void SetTraffcounter(TRAFFCOUNTER * tc) = 0;
+ virtual void SetStore(BASE_STORE * st) = 0;
+ virtual void SetStgSettings(const SETTINGS * s) = 0;
+ virtual void SetSettings(const MODULE_SETTINGS & s) = 0;
+ virtual int ParseSettings() = 0;
- virtual int Start() = 0;
- virtual int Stop() = 0;
- virtual int Reload() = 0;
- virtual bool IsRunning() = 0;
- virtual const string & GetStrError() const = 0;
- virtual const string GetVersion() const = 0;
- virtual uint16_t GetStartPosition() const = 0;
- virtual uint16_t GetStopPosition() const = 0;
+ virtual int Start() = 0;
+ virtual int Stop() = 0;
+ virtual int Reload() = 0;
+ virtual bool IsRunning() = 0;
+ virtual const std::string & GetStrError() const = 0;
+ virtual const std::string GetVersion() const = 0;
+ virtual uint16_t GetStartPosition() const = 0;
+ virtual uint16_t GetStopPosition() const = 0;
};
-//-----------------------------------------------------------------------------
-#endif
-
+#endif