MailImporter

selectthunderbirdprofilewidget.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailimporter_private_export.h"
10#include <QDialog>
11
12#include <QMap>
13
14namespace Ui
15{
16class SelectThunderbirdProfileWidget;
17}
18
19namespace MailImporter
20{
21class MAILIMPORTER_TESTS_EXPORT SelectThunderbirdProfileWidget : public QWidget
22{
23 Q_OBJECT
24
25public:
26 explicit SelectThunderbirdProfileWidget(QWidget *parent = nullptr);
27 ~SelectThunderbirdProfileWidget();
28
29 void fillProfile(const QMap<QString, QString> &map, const QString &defaultProfile);
30 [[nodiscard]] QString selectedProfile() const;
31
32private:
33 Ui::SelectThunderbirdProfileWidget *const ui;
34};
35
36class MAILIMPORTER_TESTS_EXPORT SelectThunderbirdProfileDialog : public QDialog
37{
38 Q_OBJECT
39public:
40 explicit SelectThunderbirdProfileDialog(QWidget *parent = nullptr);
41 ~SelectThunderbirdProfileDialog();
42 [[nodiscard]] QString selectedProfile() const;
43 void fillProfile(const QMap<QString, QString> &map, const QString &defaultProfile);
44
45private:
46 SelectThunderbirdProfileWidget *const mSelectProfile;
47};
48}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.