File indexing completed on 2025-01-19 04:46:43
0001 /* 0002 SPDX-FileCopyrightText: 2016-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 class ConfirmAddressWidget; 0011 class ConfirmAddressDialog : public QDialog 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit ConfirmAddressDialog(QWidget *parent = nullptr); 0016 ~ConfirmAddressDialog() override; 0017 0018 void setValidAddresses(const QStringList &addresses); 0019 void setInvalidAddresses(const QStringList &addresses); 0020 void setCurrentIdentity(uint identity); 0021 0022 Q_SIGNALS: 0023 void addWhileListEmails(const QStringList &, uint currentIdentity); 0024 0025 private: 0026 void slotWhiteListSelectedEmails(); 0027 void writeConfig(); 0028 void readConfig(); 0029 uint mCurrentIdentity = 0; 0030 ConfirmAddressWidget *const mConfirmWidget; 0031 QPushButton *const mWhiteListEmailsButton; 0032 };