-class AUTH_AO : public STG::Auth {
-public:
- AUTH_AO();
-
- void SetUsers(STG::Users * u) override { users = u; }
-
- int Start() override;
- int Stop() override;
- int Reload(const STG::ModuleSettings & /*ms*/) override { return 0; }
- bool IsRunning() override { return isRunning; }
- void SetSettings(const STG::ModuleSettings &) override {}
- int ParseSettings() override { return 0; }
- const std::string & GetStrError() const override { return errorStr; }
- std::string GetVersion() const override;
- uint16_t GetStartPosition() const override { return 30; }
- uint16_t GetStopPosition() const override { return 30; }
-
- int SendMessage(const STG::Message & msg, uint32_t ip) const override;
-
-private:
- AUTH_AO(const AUTH_AO & rvalue);
- AUTH_AO & operator=(const AUTH_AO & rvalue);
-
- void AddUser(UserPtr u);
- void DelUser(UserPtr u);
-
- void GetUsers();
- void SetUserNotifiers(UserPtr u);
- void UnSetUserNotifiers(UserPtr u);
- void UpdateUserAuthorization(ConstUserPtr u) const;
-
- mutable std::string errorStr;
- STG::Users * users;
- std::vector<UserPtr> userList;
- bool isRunning;
- STG::ModuleSettings settings;
-
- std::list<CHG_BEFORE_NOTIFIER<int> > BeforeChgAONotifierList;
- std::list<CHG_AFTER_NOTIFIER<int> > AfterChgAONotifierList;
-
- std::list<CHG_BEFORE_NOTIFIER<STG::UserIPs> > BeforeChgIPNotifierList;
- std::list<CHG_AFTER_NOTIFIER<STG::UserIPs> > AfterChgIPNotifierList;
-
- class ADD_USER_NONIFIER: public STG::NotifierBase<UserPtr> {