• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

mailtransport

  • MailTransport
  • TransportConfigWidget
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MailTransport::TransportConfigWidget Class Reference

#include <transportconfigwidget.h>

Inheritance diagram for MailTransport::TransportConfigWidget:
MailTransport::SMTPConfigWidget MailTransport::SendmailConfigWidget

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.

Author
Constantin Berzan exit3.nosp@m.219@.nosp@m.gmail.nosp@m..com
Since
4.4

Definition at line 59 of file transportconfigwidget.h.

Constructor & Destructor Documentation

◆ TransportConfigWidget() [1/2]

TransportConfigWidget::TransportConfigWidget ( Transport *  transport,
QWidget *  parent = 0 
)
explicit

Creates a new mail transport configuration widget for the given Transport object.

Parameters
transportThe Transport object to configure.
parentThe parent widget.

Definition at line 37 of file transportconfigwidget.cpp.

◆ ~TransportConfigWidget()

TransportConfigWidget::~TransportConfigWidget ( )
virtual

Destroys the widget.

Definition at line 50 of file transportconfigwidget.cpp.

◆ TransportConfigWidget() [2/2]

TransportConfigWidget::TransportConfigWidget ( TransportConfigWidgetPrivate &  dd,
Transport *  transport,
QWidget *  parent 
)
protected

Definition at line 43 of file transportconfigwidget.cpp.

Member Function Documentation

◆ apply

void TransportConfigWidget::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

TransportConfigWidgetPrivate* const MailTransport::TransportConfigWidget::d_ptr
protected

Definition at line 95 of file transportconfigwidget.h.


The documentation for this class was generated from the following files:
  • transportconfigwidget.h
  • transportconfigwidget.cpp
This file is part of the KDE documentation.
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.

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal