Debian Codegraph @

src/libs/kernel/commands/ResourceGroupModifyCoordinatorCmd.h

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