X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/daa6cb18a0ff8451a9599905a01d66d6515fdb86..bceed6b3cc0cbd030434797e3d6c4addfc456be7:/projects/stargazer/plugins/authorization/ao/ao.h?ds=inline diff --git a/projects/stargazer/plugins/authorization/ao/ao.h b/projects/stargazer/plugins/authorization/ao/ao.h index 205ebf5a..9ed7ffcf 100644 --- a/projects/stargazer/plugins/authorization/ao/ao.h +++ b/projects/stargazer/plugins/authorization/ao/ao.h @@ -37,6 +37,7 @@ #include "stg/notifer.h" #include "stg/user_ips.h" #include "stg/user.h" +#include "stg/logger.h" extern "C" PLUGIN * GetPlugin(); @@ -82,18 +83,18 @@ private: class AUTH_AO : public AUTH { public: AUTH_AO(); - virtual ~AUTH_AO(){}; + virtual ~AUTH_AO(){} void SetUsers(USERS * u) { users = u; } int Start(); int Stop(); - int Reload() { return 0; } + int Reload(const MODULE_SETTINGS & /*ms*/) { return 0; } bool IsRunning() { return isRunning; } void SetSettings(const MODULE_SETTINGS &) {} int ParseSettings() { return 0; } const std::string & GetStrError() const { return errorStr; } - const std::string GetVersion() const; + std::string GetVersion() const; uint16_t GetStartPosition() const { return 30; } uint16_t GetStopPosition() const { return 30; } @@ -117,11 +118,11 @@ private: bool isRunning; MODULE_SETTINGS settings; - list > BeforeChgAONotifierList; - list > AfterChgAONotifierList; + std::list > BeforeChgAONotifierList; + std::list > AfterChgAONotifierList; - list > BeforeChgIPNotifierList; - list > AfterChgIPNotifierList; + std::list > BeforeChgIPNotifierList; + std::list > AfterChgIPNotifierList; class ADD_USER_NONIFIER: public NOTIFIER_BASE { public: @@ -148,6 +149,7 @@ private: AUTH_AO & auth; } onDelUserNotifier; + PLUGIN_LOGGER logger; friend class CHG_BEFORE_NOTIFIER; friend class CHG_AFTER_NOTIFIER;