mailtransport
#include <transportconfigwidget.h>

Public Slots | |
virtual void | apply () |
Public Member Functions | |
TransportConfigWidget (Transport *transport, QWidget *parent=0) | |
virtual | ~TransportConfigWidget () |
KConfigDialogManager * | configManager () const |
Protected Member Functions | |
TransportConfigWidget (TransportConfigWidgetPrivate &dd, Transport *transport, QWidget *parent) | |
Protected Attributes | |
TransportConfigWidgetPrivate *const | d_ptr |
Detailed Description
Abstract configuration widget for a mail transport. It makes sure that the configured transport has a unique name, and takes care of writing its settings to the config file. If it is a new transport, the caller must still call TransportManager::addTransport() to register the transport.
Concrete configuration is done in subclasses SMTPConfigWidget and SendmailConfigWidget. Akonadi-type transports are not configured by MailTransport directly, instead the configure() method of their agent instance is called.
To configure a transport from applications, use TransportManager::configureTransport(). You still need to call TransportManager::addTransport() if this is a new transport, not registered with TransportManager.
- Since
- 4.4
Definition at line 59 of file transportconfigwidget.h.
Constructor & Destructor Documentation
◆ TransportConfigWidget() [1/2]
|
explicit |
Creates a new mail transport configuration widget for the given Transport object.
- Parameters
-
transport The Transport object to configure. parent The parent widget.
Definition at line 37 of file transportconfigwidget.cpp.
◆ ~TransportConfigWidget()
|
virtual |
Destroys the widget.
Definition at line 50 of file transportconfigwidget.cpp.
◆ TransportConfigWidget() [2/2]
|
protected |
Definition at line 43 of file transportconfigwidget.cpp.
Member Function Documentation
◆ apply
|
virtualslot |
Saves the transport's settings.
The base implementation writes the settings to the config file and makes sure the transport has a unique name. Reimplement in derived classes to save your custom settings, and call the base implementation.
Definition at line 73 of file transportconfigwidget.cpp.
◆ configManager()
KConfigDialogManager * TransportConfigWidget::configManager | ( | ) | const |
Get the KConfigDialogManager for this widget.
Definition at line 66 of file transportconfigwidget.cpp.
Member Data Documentation
◆ d_ptr
|
protected |
Definition at line 95 of file transportconfigwidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.