mailtransport
20 #include "transportcombobox.h"
21 #include "transport.h"
22 #include "transportmanager.h"
25 #include <KLocalizedString>
27 using namespace MailTransport;
33 class TransportComboBoxPrivate
36 QList<int> transports;
40 : KComboBox( parent ), d( new TransportComboBoxPrivate )
42 QMetaObject::invokeMethod(
this,
"updateComboboxList");
47 TransportComboBox::~TransportComboBox()
54 if ( currentIndex() >= 0 && currentIndex() < d->transports.count() ) {
55 return d->transports.at( currentIndex() );
62 const int i = d->transports.indexOf( transportId );
63 if ( i >= 0 && i < count() ) {
71 return static_cast<TransportBase::EnumType::type
>( transtype );
79 void TransportComboBox::fillComboBox()
88 addItems( listNames );
89 setTransportList(listIds);
93 if ( oldTransport != -1 ) {
100 void TransportComboBox::setTransportList(
const QList<int> &transportList)
102 d->transports = transportList;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Thu Jan 9 2014 17:53:31 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.