summaryrefslogtreecommitdiffhomepage
path: root/main-window/tracking-mixin.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-13 19:39:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-24 00:43:03 +0200
commit1cac120c0b6b460899add3546d013b628d6b54bc (patch)
tree45362a76b8b47e310b13a679004b1f9936ff3a87 /main-window/tracking-mixin.hpp
parent3faf71a4b51c3f972593d1df8f649a4a100226ac (diff)
WIP
Diffstat (limited to 'main-window/tracking-mixin.hpp')
-rw-r--r--main-window/tracking-mixin.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/main-window/tracking-mixin.hpp b/main-window/tracking-mixin.hpp
new file mode 100644
index 00000000..e48ca630
--- /dev/null
+++ b/main-window/tracking-mixin.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "mixins.hpp"
+
+#include "logic/work.hpp"
+
+#include <memory>
+
+namespace OTR_MIXIN_NS(tracking_mixin) {
+
+using work_ptr = std::shared_ptr<Work>;
+
+struct OTR_MAIN_EXPORT has_work {
+ virtual explicit operator work_ptr() = 0;
+ inline has_work() = default;
+ virtual ~has_work();
+};
+
+}