| 1 |
/* This file is part of the KDE project |
| 2 |
* SPDX-FileCopyrightText: 2004-2007 Dag Andersen <[email protected]> |
| 3 |
* SPDX-FileCopyrightText: 2011 Dag Andersen <[email protected]> |
| 4 |
* SPDX-FileCopyrightText: 2016 Dag Andersen <[email protected]> |
| 5 |
* SPDX-FileCopyrightText: 2019 Dag Andersen <[email protected]> |
| 6 |
* |
| 7 |
* SPDX-License-Identifier: LGPL-2.0-or-later |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef KPTREMOVEPARENTGROUPCMD_H |
| 11 |
#define KPTREMOVEPARENTGROUPCMD_H |
| 12 |
|
| 13 |
#include "plankernel_export.h" |
| 14 |
|
| 15 |
#include "NamedCommand.h" |
| 16 |
|
| 17 |
|
| 18 |
/// The main namespace |
| 19 |
namespace KPlato |
| 20 |
{ |
| 21 |
|
| 22 |
class Resource; |
| 23 |
class ResourceGroup; |
| 24 |
|
| 25 |
class PLANKERNEL_EXPORT RemoveParentGroupCmd : public NamedCommand |
| 26 |
{ |
| 27 |
public: |
| 28 |
RemoveParentGroupCmd(Resource *resource, ResourceGroup *group, const KUndo2MagicString& name = KUndo2MagicString()); |
| 29 |
~RemoveParentGroupCmd() override; |
| 30 |
void execute() override; |
| 31 |
void unexecute() override; |
| 32 |
|
| 33 |
protected: |
| 34 |
Resource *m_resource; |
| 35 |
ResourceGroup *m_group; |
| 36 |
}; |
| 37 |
|
| 38 |
} |
| 39 |
|
| 40 |
#endif |