MailImporter

selectthunderbirdprofilewidget.h
1 /*
2  Copyright (c) 2012-2020 Laurent Montel <[email protected]>
3 
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.
8 
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
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
17 */
18 
19 #ifndef SELECTTHUNDERBIRDPROFILEWIDGET_H
20 #define SELECTTHUNDERBIRDPROFILEWIDGET_H
21 
22 #include <QDialog>
23 #include "mailimporter_private_export.h"
24 
25 #include <QMap>
26 
27 namespace Ui {
28 class SelectThunderbirdProfileWidget;
29 }
30 
31 namespace MailImporter {
32 class MAILIMPORTER_TESTS_EXPORT SelectThunderbirdProfileWidget : public QWidget
33 {
34  Q_OBJECT
35 
36 public:
37  explicit SelectThunderbirdProfileWidget(QWidget *parent = nullptr);
38  ~SelectThunderbirdProfileWidget();
39 
40  void fillProfile(const QMap<QString, QString> &map, const QString &defaultProfile);
41  Q_REQUIRED_RESULT QString selectedProfile() const;
42 
43 private:
44  Ui::SelectThunderbirdProfileWidget *ui = nullptr;
45 };
46 
47 class MAILIMPORTER_TESTS_EXPORT SelectThunderbirdProfileDialog : public QDialog
48 {
49  Q_OBJECT
50 public:
51  explicit SelectThunderbirdProfileDialog(QWidget *parent = nullptr);
52  ~SelectThunderbirdProfileDialog();
53  Q_REQUIRED_RESULT QString selectedProfile() const;
54  void fillProfile(const QMap<QString, QString> &map, const QString &defaultProfile);
55 
56 private:
57  SelectThunderbirdProfileWidget *mSelectProfile = nullptr;
58 };
59 }
60 
61 #endif // SELECTTHUNDERBIRDPROFILEWIDGET_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 3 2020 23:14:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.