-public:
- AUTH_AO();
- virtual ~AUTH_AO(){};
-
- void SetUsers(USERS * u);
- void SetTariffs(TARIFFS *){};
- void SetAdmins(ADMINS *){};
- void SetTraffcounter(TRAFFCOUNTER *){};
- void SetStore(BASE_STORE *){};
- void SetStgSettings(const SETTINGS *){};
-
- int Start();
- int Stop();
- int Reload() { return 0; };
- bool IsRunning();
- void SetSettings(const MODULE_SETTINGS & s);
- int ParseSettings();
- const string & GetStrError() const;
- const string GetVersion() const;
- uint16_t GetStartPosition() const;
- uint16_t GetStopPosition() const;
-
- void AddUser(user_iter u);
- void DelUser(user_iter u);
-
- void UpdateUserAuthorization(user_iter u) const;
- void Unauthorize(user_iter u) const;
-
- int SendMessage(const STG_MSG & msg, uint32_t ip) const;
-
-private:
- void GetUsers();
- void SetUserNotifiers(user_iter u);
- void UnSetUserNotifiers(user_iter u);
-
- mutable string errorStr;
- AUTH_AO_SETTINGS aoSettings;
- USERS * users;
- list<user_iter> usersList;
- bool isRunning;
- MODULE_SETTINGS settings;
-
- /*
- ÍÙ ÄÏÌÖÎÙ ÐÅÒÅÐÒÏ×ÅÒÉÔØ ×ÏÚÍÏÖÎÏÓÔØ Á×ÔÏÒÉÚÁÃÉÉ ÀÚÅÒÁ ÐÒÉ ÉÚÍÅÎÅÎÉÉ
- ÓÌÅÄÕÀÝÉÈ ÅÇÏ ÐÁÒÁÍÅÔÒÏ×:
- - alwaysOnline
- - ips
- */
-
- 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_iter>
- {