Debian Codegraph @

BambooTracker/command/order/insert_order_below_command.hpp

raw
1 /*
2 * SPDX-FileCopyrightText: 2018 Rerrah
3 * SPDX-License-Identifier: MIT
4 */
5
6 #pragma once
7
8 #include <memory>
9 #include "../abstract_command.hpp"
10 #include "module.hpp"
11
12 class InsertOrderBelowCommand final : public AbstractCommand
13 {
14 public:
15 InsertOrderBelowCommand(std::weak_ptr<Module> mod, int songNum, int orderNum);
16 bool redo() override;
17 bool undo() override;
18
19 private:
20 std::weak_ptr<Module> mod_;
21 int song_, order_;
22 };