X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ee1709cd231588fe672d0bd2546ef69ee87ff88c..b2b89723a2427bba8290bd6967a1ab39cbb630be:/include/stg/users.h diff --git a/include/stg/users.h b/include/stg/users.h index a8d4eb60..a0be8493 100644 --- a/include/stg/users.h +++ b/include/stg/users.h @@ -24,11 +24,13 @@ #include +#include + namespace STG { -struct Admin; -struct User; +class Admin; +class User; struct Auth; class Users @@ -46,9 +48,9 @@ class Users virtual bool TariffInUse(const std::string& tariffName) const = 0; template - auto onUserAdd(F&& f) { return m_onAddCallbacks.add(std::forward(f)); } + auto onAdd(F&& f) { return m_onAddCallbacks.add(std::forward(f)); } template - auto onUserDel(F&& f) { return m_onDelCallbacks.add(std::forward(f)); } + auto onDel(F&& f) { return m_onDelCallbacks.add(std::forward(f)); } virtual int Add(const std::string& login, const Admin* admin) = 0; virtual void Del(const std::string& login, const Admin* admin) = 0;