MailTransport::TransportConfigWidget Class Reference

#include <transportconfigwidget.h>

Inheritance diagram for MailTransport::TransportConfigWidget:

List of all members.

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

For internal use only.

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.

Author:
Constantin Berzan <exit3219@gmail.com>
Since:
4.4

Definition at line 59 of file transportconfigwidget.h.


Constructor & Destructor Documentation

TransportConfigWidget::TransportConfigWidget ( Transport transport,
QWidget *  parent = 0 
) [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::~TransportConfigWidget (  )  [virtual]

Destroys the widget.

Definition at line 50 of file transportconfigwidget.cpp.


Member Function Documentation

void TransportConfigWidget::apply (  )  [virtual, slot]

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.

Reimplemented in MailTransport::SMTPConfigWidget.

Definition at line 73 of file transportconfigwidget.cpp.

KConfigDialogManager * TransportConfigWidget::configManager (  )  const

For internal use only.

Get the KConfigDialogManager for this widget.

Definition at line 66 of file transportconfigwidget.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys