Debian Codegraph @

src/libs/kernel/commands/ProjectModifyTimeZoneCmd.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 KPTPROJECTMODIFYTIMEZONECMD_H
8 #define KPTPROJECTMODIFYTIMEZONECMD_H
9
10 #include "plankernel_export.h"
11
12 #include "NamedCommand.h"
13
14 #include <kundo2command.h>
15
16 #include <QTimeZone>
17
18 /// The main namespace
19 namespace KPlato
20 {
21
22 class Project;
23
24 class PLANKERNEL_EXPORT ProjectModifyTimeZoneCmd : public NamedCommand
25 {
26 public:
27 ProjectModifyTimeZoneCmd(Project &, const QTimeZone &tz, const KUndo2MagicString& name = KUndo2MagicString());
28 ~ProjectModifyTimeZoneCmd() override;
29 void execute() override;
30 void unexecute() override;
31
32 private:
33 Project &m_project;
34 QTimeZone m_oldtz;
35 QTimeZone m_newtz;
36 };
37
38 }
39
40 #endif