]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig2/stgconfig.cpp
Fixed problems with connect/disconnect notification.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig2 / stgconfig.cpp
index d83942dc3a78065c172a8a5475643da9090a8609..f08286ca7906e015cbfd983b2f945c23e6e82bd6 100644 (file)
@@ -4,33 +4,13 @@
 #include <functional>
 #include <algorithm>
 
+#include "stg/plugin_creator.h"
 #include "stgconfig.h"
 #include "../../../tariffs.h"
 #include "../../../admins.h"
 #include "../../../users.h"
 
-class STGCONFIG_CREATOR
-{
-private:
-    STG_CONFIG * stgconfig;
-
-public:
-    STGCONFIG_CREATOR()
-        : stgconfig(new STG_CONFIG())
-        {
-        };
-    ~STGCONFIG_CREATOR()
-        {
-        delete stgconfig;
-        };
-
-    STG_CONFIG * GetPlugin()
-        {
-        return stgconfig;
-        };
-};
-
-STGCONFIG_CREATOR stgc;
+PLUGIN_CREATOR<STG_CONFIG> stgc;
 
 BASE_PLUGIN * GetPlugin()
 {
@@ -175,12 +155,12 @@ return NULL;
 
 uint16_t STG_CONFIG::GetStartPosition() const
 {
-return 220;
+return 20;
 }
 
 uint16_t STG_CONFIG::GetStopPosition() const
 {
-return 220;
+return 20;
 }
 
 bool PrepareNetwork()