]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig2/stgconfig.cpp
Simplified admins API
[stg.git] / projects / stargazer / plugins / configuration / sgconfig2 / stgconfig.cpp
index d83942dc3a78065c172a8a5475643da9090a8609..c5864cc4c7b3540ef4da0f05a16bb638dc088573 100644 (file)
@@ -4,33 +4,13 @@
 #include <functional>
 #include <algorithm>
 
 #include <functional>
 #include <algorithm>
 
+#include "stg/plugin_creator.h"
 #include "stgconfig.h"
 #include "../../../tariffs.h"
 #include "../../../admins.h"
 #include "../../../users.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()
 {
 
 BASE_PLUGIN * GetPlugin()
 {