MailTransport

smtpconfigwidget.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  Based on MailTransport code by:
5  SPDX-FileCopyrightText: 2006-2007 Volker Krause <[email protected]>
6 
7  Based on KMail code by:
8  SPDX-FileCopyrightText: 2001-2002 Michael Haeckel <[email protected]>
9 
10  SPDX-License-Identifier: LGPL-2.0-or-later
11 */
12 
13 #pragma once
14 
15 #include "widgets/transportconfigwidget.h"
16 class QAbstractButton;
17 namespace MailTransport
18 {
19 class Transport;
20 
21 /**
22  @internal
23 */
24 class SMTPConfigWidgetPrivate;
25 
26 /**
27  @internal
28  Configuration widget for a SMTP transport.
29 */
31 {
32  Q_OBJECT
33 
34 public:
35  explicit SMTPConfigWidget(Transport *transport, QWidget *parent = nullptr);
36 
37 public Q_SLOTS:
38  /** reimpl */
39  void apply() override;
40 
41 private Q_SLOTS:
42  void checkSmtpCapabilities();
43  void passwordsLoaded();
44  void slotFinished(const QList<int> &results);
45  void hostNameChanged(const QString &text);
46  void encryptionChanged(int enc);
47  void ensureValidAuthSelection();
48 
49 private:
50  void encryptionAbstractButtonChanged(QAbstractButton *button);
51  Q_DECLARE_PRIVATE(SMTPConfigWidget)
52 
53  void init();
54  void enablePasswordLine();
55 };
56 } // namespace MailTransport
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
Represents the settings of a specific mail transport.
Definition: transport.h:32
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:49:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.