Astyle kdelibs
[kdepim.git] / sieveeditor / sieveeditorcentralwidget.h
blob95c08e03b291c6f9b848ee83fdc12e46ceecb179
1 /*
2 Copyright (c) 2014-2016 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef SIEVEEDITORCENTRALWIDGET_H
19 #define SIEVEEDITORCENTRALWIDGET_H
21 #include <QStackedWidget>
22 class SieveEditorConfigureServerPage;
23 class SieveEditorMainWidget;
24 class SieveEditorCentralWidget : public QStackedWidget
26 Q_OBJECT
27 public:
28 explicit SieveEditorCentralWidget(QWidget *parent = Q_NULLPTR);
29 ~SieveEditorCentralWidget();
31 SieveEditorMainWidget *sieveEditorMainWidget() const;
33 Q_SIGNALS:
34 void configureClicked();
36 private Q_SLOTS:
37 void slotServerSieveFound(bool hasServer);
39 private:
40 SieveEditorConfigureServerPage *mConfigureWidget;
41 SieveEditorMainWidget *mSieveEditorMainWidget;
44 #endif // SIEVEEDITORCENTRALWIDGET_H