]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/smux.h
Admin, service and corporation sesnsors added for SUMX
[stg.git] / projects / stargazer / plugins / other / smux / smux.h
index 08e23c38faf6617c385ef811729122a33a4d3c5b..7ab603dfd095b9c53f41a85e0d33f2aed54d10ad 100644 (file)
@@ -12,8 +12,6 @@
 #include "stg/os_int.h"
 #include "stg/plugin.h"
 #include "stg/module_settings.h"
-#include "stg/users.h"
-#include "stg/tariffs.h"
 
 #include "sensors.h"
 #include "tables.h"
@@ -24,6 +22,10 @@ extern "C" PLUGIN * GetPlugin();
 class USER;
 class SETTINGS;
 class SMUX;
+class USERS;
+class TARIFFS;
+class SERVICES;
+class CORPORATIONS;
 
 typedef bool (SMUX::*SMUXPacketHandler)(const SMUX_PDUs_t * pdus);
 typedef bool (SMUX::*PDUsHandler)(const PDUs_t * pdus);
@@ -56,7 +58,9 @@ public:
 
     void SetUsers(USERS * u) { users = u; }
     void SetTariffs(TARIFFS * t) { tariffs = t; }
-    void SetAdmins(ADMINS *) {}
+    void SetAdmins(ADMINS * a) { admins = a; }
+    void SetServices(SERVICES * s) { services = s; }
+    void SetCorporations(CORPORATIONS * c) { corporations = c; }
     void SetTraffcounter(TRAFFCOUNTER *) {}
     void SetStore(STORE *) {}
     void SetStgSettings(const SETTINGS *) {}
@@ -93,6 +97,9 @@ private:
 
     USERS * users;
     TARIFFS * tariffs;
+    ADMINS * admins;
+    SERVICES * services;
+    CORPORATIONS * corporations;
 
     mutable std::string errorStr;
     SMUX_SETTINGS smuxSettings;