incidencesecrecy.h 997 Bytes
Newer Older
1
/*
2
3
4
5
  SPDX-FileCopyrightText: 2010 Bertjan Broeksema <broeksema@kde.org>
  SPDX-FileCopyrightText: 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>

  SPDX-License-Identifier: LGPL-2.0-or-later
6
7
8
9
10
11
12
*/

#ifndef INCIDENCEEDITOR_INCIDENCESECRECY_H
#define INCIDENCEEDITOR_INCIDENCESECRECY_H

#include "incidenceeditor-ng.h"

Laurent Montel's avatar
Laurent Montel committed
13
14
namespace Ui
{
15
16
17
class EventOrTodoDesktop;
}

Laurent Montel's avatar
Laurent Montel committed
18
19
namespace IncidenceEditorNG
{
20
21
22
23
24
class IncidenceSecrecy : public IncidenceEditor
{
    Q_OBJECT
public:
    using IncidenceEditorNG::IncidenceEditor::load; // So we don't trigger -Woverloaded-virtual
Laurent Montel's avatar
Laurent Montel committed
25
    using IncidenceEditorNG::IncidenceEditor::save; // So we don't trigger -Woverloaded-virtual
26
27
28

    explicit IncidenceSecrecy(Ui::EventOrTodoDesktop *ui);

29
30
    void load(const KCalendarCore::Incidence::Ptr &incidence) override;
    void save(const KCalendarCore::Incidence::Ptr &incidence) override;
Laurent Montel's avatar
Laurent Montel committed
31
    Q_REQUIRED_RESULT bool isDirty() const override;
32
33

private:
Laurent Montel's avatar
Laurent Montel committed
34
    Ui::EventOrTodoDesktop *const mUi;
35
36
37
38
};
}

#endif