blob: cde0484c678e348dbecfd30dadcd54fe2141ee8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#pragma once
#include "mixins.hpp"
#include "compat/library-path.hpp"
#include "api/plugin-api.hpp"
#include "logic/extensions.hpp"
#include "logic/state.hpp"
#include "logic/main-settings.hpp"
#include <memory>
#include <utility>
#include <QObject>
namespace OTR_MIXIN_NS(module_mixin) {
using namespace options;
using dylib_ptr = Modules::dylib_ptr;
using dylib_list = Modules::dylib_list;
struct OTR_MAIN_EXPORT module_mixin
{
module_mixin();
virtual ~module_mixin();
std::unique_ptr<ITrackerDialog> tracker_dialog;
std::unique_ptr<IProtocolDialog> proto_dialog;
std::unique_ptr<IFilterDialog> filter_dialog;
std::tuple<dylib_ptr, int> module_by_name(const QString& name, const dylib_list& list) const;
dylib_ptr current_tracker();
dylib_ptr current_protocol();
dylib_ptr current_filter();
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;
};
}
OTR_DECLARE_MIXIN(module_mixin)
|