template <typename varParamType>
class CHG_BEFORE_NOTIFIER: public PROPERTY_NOTIFIER_BASE<varParamType> {
public:
+ CHG_BEFORE_NOTIFIER() : auth(NULL) {}
void Notify(const varParamType & oldValue, const varParamType & newValue);
void SetUser(USER_PTR u) { user = u; }
USER_PTR GetUser() {return user; }
template <typename varParamType>
class CHG_AFTER_NOTIFIER: public PROPERTY_NOTIFIER_BASE<varParamType> {
public:
+ CHG_AFTER_NOTIFIER() : auth(NULL) {}
void Notify(const varParamType & oldValue, const varParamType & newValue);
void SetUser(USER_PTR u) { user = u; }
USER_PTR GetUser() {return user; }
int ParseSettings(const MODULE_SETTINGS & s);
int GetAverageOnlineTime() const;
private:
- int ParseIntInRange(const std::string & str, int min, int max, int * val);
int averageOnlineTime;
std::string errorStr;
};
virtual ~AUTH_STRESS() {}
void SetUsers(USERS * u);
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
class ADD_USER_NONIFIER: public NOTIFIER_BASE<USER_PTR> {
public:
- ADD_USER_NONIFIER() {}
+ ADD_USER_NONIFIER() : auth(NULL) {}
virtual ~ADD_USER_NONIFIER() {}
void SetAuthorizator(AUTH_STRESS * a) { auth = a; }
class DEL_USER_NONIFIER: public NOTIFIER_BASE<USER_PTR> {
public:
- DEL_USER_NONIFIER() {}
+ DEL_USER_NONIFIER() : auth(NULL) {}
virtual ~DEL_USER_NONIFIER() {}
void SetAuthorizator(AUTH_STRESS * a) { auth = a; }