Oops fix logic
[kdepim.git] / mboximporter / mboximportwidget.h
blobe0d479be25ad59170c028c964e3111ff1b122d1e
1 /*
2 Copyright (c) 2012-2015 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 IMPORTMAILPAGE_H
19 #define IMPORTMAILPAGE_H
21 #include <QWidget>
23 namespace Ui
25 class MBoxImportWidget;
28 namespace Akonadi
30 class Collection;
33 namespace MailImporter
35 class ImportMailsWidget;
38 class MBoxImportWidget : public QWidget
40 Q_OBJECT
41 public:
42 explicit MBoxImportWidget(QWidget *parent = Q_NULLPTR);
43 ~MBoxImportWidget();
44 MailImporter::ImportMailsWidget *mailWidget();
45 Akonadi::Collection selectedCollection() const;
46 void setImportButtonEnabled(bool enabled);
48 private Q_SLOTS:
49 void collectionChanged(const Akonadi::Collection &collection);
51 Q_SIGNALS:
52 void importMailsClicked();
54 private:
55 Ui::MBoxImportWidget *ui;
58 #endif // IMPORTMAILPAGE_H