MailTransport
transportcombobox.cpp
27 connect(TransportManager::self(), &TransportManager::transportsChanged, this, &TransportComboBox::updateComboboxList);
28 connect(TransportManager::self(), &TransportManager::transportRemoved, this, &TransportComboBox::transportRemoved);
TransportComboBox(QWidget *parent=nullptr)
Creates a new mail transport selection combo box.
Definition transportcombobox.cpp:22
bool setCurrentTransport(int transportId)
Selects the given transport.
Definition transportcombobox.cpp:41
int currentTransportId() const
Returns identifier of the currently selected mail transport.
Definition transportcombobox.cpp:33
QString transportType() const
Returns the type of the selected transport.
Definition transportcombobox.cpp:51
void updateComboboxList()
Definition transportcombobox.cpp:56
Q_SCRIPTABLE QStringList transportNames() const
Returns a list of transport names.
Definition transportmanager.cpp:306
void transportRemoved(int id, const QString &name)
Emitted when a transport is deleted.
Transport * transportById(Transport::Id id, bool def=true) const
Returns the Transport object with the given id.
Definition transportmanager.cpp:138
Q_SCRIPTABLE void transportsChanged()
Emitted when transport settings have changed (by this or any other TransportManager instance).
static TransportManager * self()
Returns the TransportManager instance.
Definition transportmanager.cpp:129
Q_SCRIPTABLE int defaultTransportId() const
Returns the default transport identifier.
Definition transportmanager.cpp:325
Q_SCRIPTABLE QList< int > transportIds() const
Returns a list of transport identifiers.
Definition transportmanager.cpp:296
void addItems(const QStringList &texts)
void clear()
count
currentIndex
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.