SVN_SILENT made messages (.desktop file)
[kdepim.git] / incidenceeditor-ng / incidencesecrecy.h
blob76458b46d4b660b7c1e2b0bb7b1e532ce56b7bf3
1 /*
2 Copyright (C) 2010 Bertjan Broeksema <broeksema@kde.org>
3 Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
21 #ifndef INCIDENCEEDITOR_INCIDENCESECRECY_H
22 #define INCIDENCEEDITOR_INCIDENCESECRECY_H
24 #include "incidenceeditor-ng.h"
26 namespace Ui
28 class EventOrTodoDesktop;
29 class EventOrTodoMore;
32 namespace IncidenceEditorNG
35 class INCIDENCEEDITORS_NG_EXPORT IncidenceSecrecy : public IncidenceEditor
37 Q_OBJECT
38 public:
39 #ifdef KDEPIM_MOBILE_UI
40 explicit IncidenceSecrecy(Ui::EventOrTodoMore *ui);
41 #else
42 explicit IncidenceSecrecy(Ui::EventOrTodoDesktop *ui);
43 #endif
45 virtual void load(const KCalCore::Incidence::Ptr &incidence);
46 virtual void save(const KCalCore::Incidence::Ptr &incidence);
47 virtual bool isDirty() const;
49 private:
50 #ifdef KDEPIM_MOBILE_UI
51 Ui::EventOrTodoMore *mUi;
52 #else
53 Ui::EventOrTodoDesktop *mUi;
54 #endif
59 #endif