]> git.stg.codes - stg.git/blobdiff - include/user.h
Unused modules removed from inetaccess plugin
[stg.git] / include / user.h
index cac12d5717c1b334b58d67ae2efcf38adb6e70ab..adf140de0cac0cef36bf26a17f6d18bbeeedbd0c 100644 (file)
 
 #include "os_int.h"
 #include "notifer.h"
-#include "base_auth.h"
 #include "stg_message.h"
 #include "tariff.h"
 #include "user_traff.h"
 
 class USER_PROPERTIES;
+class AUTH;
 
 class USER {
 public:
@@ -49,6 +49,12 @@ public:
     virtual void                AddCurrIPAfterNotifier(PROPERTY_NOTIFIER_BASE<uint32_t> * notifier) = 0;
     virtual void                DelCurrIPAfterNotifier(PROPERTY_NOTIFIER_BASE<uint32_t> * notifier) = 0;
 
+    virtual void                AddConnectedBeforeNotifier(PROPERTY_NOTIFIER_BASE<bool> * notifier) = 0;
+    virtual void                DelConnectedBeforeNotifier(PROPERTY_NOTIFIER_BASE<bool> * notifier) = 0;
+
+    virtual void                AddConnectedAfterNotifier(PROPERTY_NOTIFIER_BASE<bool> * notifier) = 0;
+    virtual void                DelConnectedAfterNotifier(PROPERTY_NOTIFIER_BASE<bool> * notifier) = 0;
+
     virtual int                 GetID() const = 0;
 
     virtual double              GetPassiveTimePart() const = 0;
@@ -71,11 +77,10 @@ public:
     virtual time_t              GetConnectedModificationTime() const = 0;
     virtual int                 GetAuthorized() const = 0;
     virtual int                 Authorize(uint32_t ip,
-                                          const std::string & iface,
                                           uint32_t enabledDirs,
-                                          const BASE_AUTH * auth) = 0;
-    virtual void                Unauthorize(const BASE_AUTH * auth) = 0;
-    virtual bool                IsAuthorizedBy(const BASE_AUTH * auth) const = 0;
+                                          const AUTH * auth) = 0;
+    virtual void                Unauthorize(const AUTH * auth) = 0;
+    virtual bool                IsAuthorizedBy(const AUTH * auth) const = 0;
 
     virtual int                 AddMessage(STG_MSG * msg) = 0;