summaryrefslogtreecommitdiffhomepage
path: root/main-window/module-mixin.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-11-03 06:48:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-11-03 06:48:51 +0100
commit310ca879118282f25b6cb2ae681627934278607a (patch)
tree71221b30269f84ceb75610960af8f963df94a7ed /main-window/module-mixin.hpp
parent0148a75d4b5301d279dd8c29ecbaeb9c85cf9efb (diff)
fix some mixin stuff, still not done
Diffstat (limited to 'main-window/module-mixin.hpp')
-rw-r--r--main-window/module-mixin.hpp22
1 files changed, 8 insertions, 14 deletions
diff --git a/main-window/module-mixin.hpp b/main-window/module-mixin.hpp
index 307d79b8..cde0484c 100644
--- a/main-window/module-mixin.hpp
+++ b/main-window/module-mixin.hpp
@@ -4,13 +4,13 @@
#include "compat/library-path.hpp"
#include "api/plugin-api.hpp"
#include "logic/extensions.hpp"
-#include "logic/work.hpp"
+#include "logic/state.hpp"
+#include "logic/main-settings.hpp"
#include <memory>
#include <utility>
#include <QObject>
-#include <QString>
namespace OTR_MIXIN_NS(module_mixin) {
@@ -19,15 +19,6 @@ using namespace options;
using dylib_ptr = Modules::dylib_ptr;
using dylib_list = Modules::dylib_list;
-struct OTR_MAIN_EXPORT module_settings final
-{
- bundle b { make_bundle("modules") };
- value<QString> tracker_dll { b, "tracker-dll", "pt" },
- filter_dll { b, "filter-dll", "accela" },
- protocol_dll { b, "protocol-dll", "freetrack" };
- module_settings();
-};
-
struct OTR_MAIN_EXPORT module_mixin
{
module_mixin();
@@ -43,14 +34,17 @@ struct OTR_MAIN_EXPORT module_mixin
dylib_ptr current_protocol();
dylib_ptr current_filter();
- void show_tracker_settings();
- void show_proto_settings();
- void show_filter_settings();
+ void show_tracker_settings_();
+ void show_proto_settings_();
+ void show_filter_settings_();
private:
Modules modules { OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH };
event_handler ev { modules.extensions() };
module_settings s;
+ State state { OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH };
+
+ QObject fuzz;
};
}