X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ee1709cd231588fe672d0bd2546ef69ee87ff88c..2196a3a0cdc5384c082febb7f4aa5994cc7d80db:/projects/stargazer/users_impl.h?ds=inline diff --git a/projects/stargazer/users_impl.h b/projects/stargazer/users_impl.h index b5a37063..07c0e8ab 100644 --- a/projects/stargazer/users_impl.h +++ b/projects/stargazer/users_impl.h @@ -20,7 +20,14 @@ #pragma once -#include +#include "settings_impl.h" +#include "user_impl.h" +#include "stg/store.h" +#include "stg/users.h" +#include "stg/user.h" +#include "stg/tariffs.h" +#include "stg/logger.h" +#include "stg/noncopyable.h" #include #include @@ -34,16 +41,6 @@ #include #include -#include "stg/store.h" -#include "stg/users.h" -#include "stg/user.h" -#include "stg/tariffs.h" -#include "stg/logger.h" -#include "stg/notifer.h" -#include "stg/noncopyable.h" -#include "settings_impl.h" -#include "user_impl.h" - namespace STG { @@ -52,7 +49,6 @@ const int userDeleteDelayTime = 120; typedef std::list::iterator user_iter; typedef std::list::const_iterator const_user_iter; -class UsersImpl; //----------------------------------------------------------------------------- struct USER_TO_DEL { USER_TO_DEL() @@ -66,9 +62,6 @@ time_t delTime; //----------------------------------------------------------------------------- class UsersImpl : public Users { - friend class PROPERTY_NOTIFER_IP_BEFORE; - friend class PROPERTY_NOTIFER_IP_AFTER; - public: using UserImplPtr = UserImpl*; @@ -83,9 +76,9 @@ class UsersImpl : public Users bool TariffInUse(const std::string & tariffName) const override; template - auto onUserImplAdd(F&& f) { return m_onAddImplCallbacks.add(std::forward(f)); } + auto onImplAdd(F&& f) { return m_onAddImplCallbacks.add(std::forward(f)); } template - auto onUserImplDel(F&& f) { return m_onDelImplCallbacks.add(std::forward(f)); } + auto onImplDel(F&& f) { return m_onDelImplCallbacks.add(std::forward(f)); } int Add(const std::string & login, const Admin * admin) override; void Del(const std::string & login, const Admin * admin) override;