Debian Codegraph @

src/libs/kernel/commands/ModifyResourceOriginCmd.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 ModifyResourceOriginCmd_H
8 #define ModifyResourceOriginCmd_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 Resource;
20
21 class PLANKERNEL_EXPORT ModifyResourceOriginCmd : public NamedCommand
22 {
23 public:
24 ModifyResourceOriginCmd(Resource *resource, bool newvalue, const KUndo2MagicString& name = KUndo2MagicString());
25
26 void execute() override;
27 void unexecute() override;
28
29 private:
30 Resource *m_resource = nullptr;
31 bool m_newvalue;
32 };
33
34 }
35
36 #endif