mailtransport
20 #include "transportcombobox.h"
21 #include "transport.h"
22 #include "transportmanager.h"
27 using namespace MailTransport;
33 class TransportComboBoxPrivate
36 QList<int> transports;
40 : KComboBox( parent ), d( new TransportComboBoxPrivate )
44 SLOT(fillComboBox()) );
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 );
74 void TransportComboBox::fillComboBox()
78 d->transports.clear();
84 addItems( listNames );
85 d->transports << listIds;
89 if ( oldTransport != -1 ) {
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:26:53 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.