X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ee1709cd231588fe672d0bd2546ef69ee87ff88c..1cd2b12bd4e4d86f6cd099240795f3ebeb3852b3:/include/stg/users.h diff --git a/include/stg/users.h b/include/stg/users.h index a8d4eb60..1587f350 100644 --- a/include/stg/users.h +++ b/include/stg/users.h @@ -24,6 +24,8 @@ #include +#include + namespace STG { @@ -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;