MailTransport

transportconfigwidget.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 #ifndef MAILTRANSPORT_TRANSPORTCONFIGWIDGET_H
14 #define MAILTRANSPORT_TRANSPORTCONFIGWIDGET_H
15 
16 #include <QWidget>
17 #include <mailtransport_export.h>
18 
20 
21 namespace MailTransport {
22 class Transport;
23 class TransportConfigWidgetPrivate;
24 
43 class MAILTRANSPORT_EXPORT TransportConfigWidget : public QWidget
44 {
45  Q_OBJECT
46 
47 public:
54  explicit TransportConfigWidget(Transport *transport, QWidget *parent = nullptr);
55 
59  ~TransportConfigWidget() override;
60 
65  KConfigDialogManager *configManager() const;
66 
67 public Q_SLOTS:
75  // TODO: do we also want to check for invalid settings?
76  virtual void apply();
77 
78 protected:
79  TransportConfigWidgetPrivate *const d_ptr;
80  TransportConfigWidget(TransportConfigWidgetPrivate &dd, Transport *transport, QWidget *parent);
81 
82 private:
83  Q_DECLARE_PRIVATE(TransportConfigWidget)
84 
85  void init(Transport *transport);
86 };
87 } // namespace MailTransport
88 
89 #endif // MAILTRANSPORT_TRANSPORTCONFIGWIDGET_H
QCA_EXPORT void init()
Represents the settings of a specific mail transport.
Definition: transport.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 07:31:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.