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

0001 /*
0002   SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004   Based on MailTransport code by:
0005   SPDX-FileCopyrightText: 2006-2007 Volker Krause <vkrause@kde.org>
0006 
0007   Based on KMail code by:
0008   SPDX-FileCopyrightText: 2001-2002 Michael Haeckel <haeckel@kde.org>
0009 
0010   SPDX-License-Identifier: LGPL-2.0-or-later
0011 */
0012 
0013 #pragma once
0014 
0015 #include <MailTransport/TransportConfigWidget>
0016 
0017 namespace MailTransport
0018 {
0019 class Transport;
0020 
0021 /**
0022   @internal
0023 */
0024 class SendmailConfigWidgetPrivate;
0025 
0026 /**
0027   @internal
0028   Configuration widget for a Sendmail transport.
0029 */
0030 class SendmailConfigWidget : public TransportConfigWidget
0031 {
0032     Q_OBJECT
0033 
0034 public:
0035     explicit SendmailConfigWidget(Transport *transport, QWidget *parent = nullptr);
0036     [[nodiscard]] bool pathIsEmpty() const;
0037 Q_SIGNALS:
0038     void enableButtonOk(bool);
0039 
0040 public Q_SLOTS:
0041     void apply() override;
0042 
0043 private Q_SLOTS:
0044     void slotTextChanged(const QString &text);
0045 
0046 protected:
0047     SendmailConfigWidget(SendmailConfigWidgetPrivate &dd, Transport *transport, QWidget *parent);
0048 
0049 private:
0050     Q_DECLARE_PRIVATE(SendmailConfigWidget)
0051 
0052     void init();
0053 };
0054 } // namespace MailTransport