Debian Codegraph @

src/libs/kernel/commands/ModifyResourceGroupOriginCmd.h

raw
1 /* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2022 Dag Andersen <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef ModifyResourceGroupOriginCmd_H
8 #define ModifyResourceGroupOriginCmd_H
9
10 #include "plankernel_export.h"
11
12 #include "NamedCommand.h"
13
14
15 /// The main namespace
16 namespace KPlato
17 {
18
19 class ResourceGroup;
20
21 class PLANKERNEL_EXPORT ModifyResourceGroupOriginCmd : public NamedCommand
22 {
23 public:
24 ModifyResourceGroupOriginCmd(KPlato::ResourceGroup *group, bool newvalue, const KUndo2MagicString& name = KUndo2MagicString());
25
26 void execute() override;
27 void unexecute() override;
28
29 private:
30 ResourceGroup *m_group = nullptr;
31 bool m_newvalue;
32 };
33
34 }
35
36 #endif