File indexing completed on 2025-01-05 04:49:27
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QDialog> 0010 0011 class SelectMailWidget; 0012 class SelectMailDialog : public QDialog 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit SelectMailDialog(QWidget *parent = nullptr); 0017 ~SelectMailDialog() override; 0018 0019 [[nodiscard]] QStringList selectedEmails() const; 0020 0021 void accept() override; 0022 Q_SIGNALS: 0023 void emailSelected(const QStringList &lst); 0024 0025 private: 0026 void writeConfig(); 0027 void readConfig(); 0028 void slotInsertEmails(); 0029 SelectMailWidget *const mSelectMailWidget; 0030 };