KMail: Fix scrolling up/down on the message viewer
[kdepim.git] / incidenceeditor-ng / freebusyurldialog.h
blobb90a1ae006c80d8111b2087e43f63a07d294e5d0
1 /*
2 Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 As a special exception, permission is given to link this program
19 with any edition of Qt, and distribute the resulting executable,
20 without including the source code for Qt in the source distribution.
22 #ifndef INCIDENCEEDITOR_FREEBUSYURLDIALOG_H
23 #define INCIDENCEEDITOR_FREEBUSYURLDIALOG_H
25 #include "incidenceeditors_ng_export.h"
26 #include "attendeedata.h"
28 #include <QDialog>
30 class KLineEdit;
32 namespace IncidenceEditorNG
35 class FreeBusyUrlWidget;
37 class INCIDENCEEDITORS_NG_EXPORT FreeBusyUrlDialog : public QDialog
39 Q_OBJECT
40 public:
41 explicit FreeBusyUrlDialog(const AttendeeData::Ptr &, QWidget *parent = Q_NULLPTR);
43 public Q_SLOTS:
44 void slotOk();
46 private:
47 FreeBusyUrlWidget *mWidget;
50 class INCIDENCEEDITORS_NG_EXPORT FreeBusyUrlWidget : public QWidget
52 Q_OBJECT
53 public:
54 explicit FreeBusyUrlWidget(const AttendeeData::Ptr &, QWidget *parent = Q_NULLPTR);
55 ~FreeBusyUrlWidget();
57 void loadConfig();
58 void saveConfig();
60 private:
61 KLineEdit *mUrlEdit;
62 AttendeeData::Ptr mAttendee;
67 #endif