-class AUTH_AO : public AUTH {
-public:
- AUTH_AO();
- virtual ~AUTH_AO(){};
-
- void SetUsers(USERS * u) { users = u; }
-
- int Start();
- int Stop();
- int Reload() { 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;
- uint16_t GetStartPosition() const { return 70; }
- uint16_t GetStopPosition() const { return 70; }
-
- void AddUser(USER_PTR u);
- void DelUser(USER_PTR u);
-
- int SendMessage(const STG_MSG & msg, uint32_t ip) const;
-
-private:
- AUTH_AO(const AUTH_AO & rvalue);
- AUTH_AO & operator=(const AUTH_AO & rvalue);
-
- void GetUsers();
- void SetUserNotifiers(USER_PTR u);
- void UnSetUserNotifiers(USER_PTR u);
- void UpdateUserAuthorization(CONST_USER_PTR u) const;
-
- mutable std::string errorStr;
- USERS * users;
- std::list<USER_PTR> usersList;
- bool isRunning;
- MODULE_SETTINGS settings;
-
- list<CHG_BEFORE_NOTIFIER<int> > BeforeChgAONotifierList;
- list<CHG_AFTER_NOTIFIER<int> > AfterChgAONotifierList;
-
- list<CHG_BEFORE_NOTIFIER<USER_IPS> > BeforeChgIPNotifierList;
- list<CHG_AFTER_NOTIFIER<USER_IPS> > AfterChgIPNotifierList;
-
- class ADD_USER_NONIFIER: public NOTIFIER_BASE<USER_PTR> {