Debian Codegraph @

src/libs/kernel/commands/SetFreedaysCalendarCmd.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 SETFREEDAYSCALENDARCMD_H
8 #define SETFREEDAYSCALENDARCMD_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 Project;
20 class Calendar;
21
22 class PLANKERNEL_EXPORT SetFreedaysCalendarCmd : public NamedCommand
23 {
24 public:
25 SetFreedaysCalendarCmd(Project *project, Calendar *value, const KUndo2MagicString& name = KUndo2MagicString());
26
27 void execute() override;
28 void unexecute() override;
29
30 private:
31 Project *m_project = nullptr;
32 Calendar *m_oldvalue;
33 Calendar *m_newvalue;
34 };
35
36 }
37
38 #endif