summaryrefslogtreecommitdiffhomepage
path: root/logic/extensions.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:45:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:45:07 +0200
commit48503f483f29450eca0f5a33381e0b64ef509d80 (patch)
tree4244f578599044a278f48f09e4f3d33c9c148e2b /logic/extensions.hpp
parente2d5245359de0cd419d49b1f3c8e1392c5d9342a (diff)
logic: add extension support
It's missing a dialog and testing.
Diffstat (limited to 'logic/extensions.hpp')
-rw-r--r--logic/extensions.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/logic/extensions.hpp b/logic/extensions.hpp
index 8cb4a989..1c1cf39d 100644
--- a/logic/extensions.hpp
+++ b/logic/extensions.hpp
@@ -6,7 +6,9 @@
#include <vector>
#include <array>
-struct event_handler final
+#include "export.hpp"
+
+struct OTR_LOGIC_EXPORT event_handler final
{
using event_ordinal = IExtension::event_ordinal;
@@ -26,11 +28,10 @@ struct event_handler final
private:
using ext_list = std::vector<extension>;
- std::array<ext_list, IExtension::event_count> extension_events;
-};
+ std::array<ext_list, IExtension::event_count> extensions_for_event;
-struct ext_settings final
-{
- static bool is_enabled(const QString& name);
- ext_settings() = delete;
+ options::bundle ext_bundle;
+
+ bool is_enabled(const QString& name);
};
+