aboutsummaryrefslogtreecommitdiff
path: root/src/commands/toggle_pause.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/toggle_pause.hpp')
-rw-r--r--src/commands/toggle_pause.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/commands/toggle_pause.hpp b/src/commands/toggle_pause.hpp
new file mode 100644
index 0000000..4e05323
--- /dev/null
+++ b/src/commands/toggle_pause.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "interfaces/command.hpp"
+#include "interfaces/generation_tracker.hpp"
+#include "interfaces/statusline.hpp"
+
+#include <memory>
+
+class TogglePauseCommand : public ICommand
+{
+public:
+ explicit TogglePauseCommand(std::shared_ptr<IGenerationTracker> generation_tracker,
+ std::shared_ptr<IStatusLine> statusline) noexcept;
+
+ void execute() noexcept override;
+
+private:
+ std::shared_ptr<IGenerationTracker> _generation_tracker;
+ std::shared_ptr<IStatusLine> _statusline;
+};