diff options
Diffstat (limited to 'main-window/tracking-mixin.hpp')
-rw-r--r-- | main-window/tracking-mixin.hpp | 19 |
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(); +}; + +} |