Debian Codegraph @

src/libs/kernel/commands/RemoveAlternativeResourceCmd.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 KPTADDALTERNATIVERESOURCECMD_H
8 #define KPTADDALTERNATIVERESOURCECMD_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 class ResourceGroup;
21
22 class PLANKERNEL_EXPORT RemoveAlternativeResourceCmd : public NamedCommand
23 {
24 public:
25 RemoveAlternativeResourceCmd(ResourceRequest *request, Resource *resource, const KUndo2MagicString& name = KUndo2MagicString());
26 ~RemoveAlternativeResourceCmd() override;
27 void execute() override;
28 void unexecute() override;
29
30 protected:
31 ResourceRequest *m_request;
32 Resource *m_resource;
33 };
34
35 }
36
37 #endif