File indexing completed on 2025-01-05 04:49:34

0001 /*
0002     SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QDialog>
0010 namespace MailTransport
0011 {
0012 class Transport;
0013 class SendmailConfigWidget;
0014 }
0015 class SendMailConfigDialog : public QDialog
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit SendMailConfigDialog(MailTransport::Transport *transport, QWidget *parent = nullptr);
0020     ~SendMailConfigDialog() override;
0021 
0022 private:
0023     void okClicked();
0024     void slotTextChanged(const QString &text);
0025     void slotEnabledOkButton(bool);
0026 
0027     MailTransport::Transport *const mTransport;
0028     MailTransport::SendmailConfigWidget *const mConfigWidget;
0029     QPushButton *mOkButton = nullptr;
0030 };