X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..5622b5d1aa70abbdb3cc4a03f085f560eab06dbe:/projects/stargazer/users.h diff --git a/projects/stargazer/users.h b/projects/stargazer/users.h index e882dcc1..424958da 100644 --- a/projects/stargazer/users.h +++ b/projects/stargazer/users.h @@ -29,6 +29,7 @@ $Author: faust $ #define USERS_H #include + #include #include #include @@ -56,7 +57,7 @@ class PROPERTY_NOTIFER_IP_BEFORE: public PROPERTY_NOTIFIER_BASE public: PROPERTY_NOTIFER_IP_BEFORE(USERS & us, user_iter u) : users(us), user(u) {}; void Notify(const uint32_t & oldValue, const uint32_t & newValue); - user_iter GetUser() { return user; }; + user_iter GetUser() const { return user; }; private: USERS & users; user_iter user; @@ -67,7 +68,7 @@ class PROPERTY_NOTIFER_IP_AFTER: public PROPERTY_NOTIFIER_BASE public: PROPERTY_NOTIFER_IP_AFTER(USERS & us, user_iter u) : users(us), user(u) {}; void Notify(const uint32_t & oldValue, const uint32_t & newValue); - user_iter GetUser() { return user; }; + user_iter GetUser() const { return user; }; private: USERS & users; user_iter user; @@ -119,8 +120,6 @@ public: int Start(); int Stop(); - int SendMessage(const string & login, time_t sndTtime, time_t showTime, char type, const string & text) const; - private: void AddToIPIdx(user_iter); void DelFromIPIdx(uint32_t ip); @@ -138,11 +137,11 @@ private: void DelUserFromIndexes(user_iter user); static void * Run(void *); - void NewMinute(const struct tm * t); - void NewDay(const struct tm * t); - void DayResetTraff(const struct tm * t); + void NewMinute(const struct tm & t); + void NewDay(const struct tm & t); + void DayResetTraff(const struct tm & t); - bool TimeToWriteDetailStat(const struct tm * t); + bool TimeToWriteDetailStat(const struct tm & t); list users; list usersToDelete;