transportmanager.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifdef HAVE_CONFIG_H
00016 #include <config.h>
00017 #endif
00018
00019 #include "transportmanager.h"
00020
00021 #include "kmtransport.h"
00022 #include "kmkernel.h"
00023 #include <kconfig.h>
00024
00025 namespace KMail {
00026
00027 QStringList TransportManager::transportNames()
00028 {
00029 KConfigGroup general( KMKernel::config(), "General");
00030
00031 int numTransports = general.readNumEntry("transports", 0);
00032
00033 QStringList transportNames;
00034 for ( int i = 1 ; i <= numTransports ; i++ ) {
00035 KMTransportInfo ti;
00036 ti.readConfig(i);
00037 transportNames << ti.name;
00038 }
00039
00040 return transportNames;
00041 }
00042
00043 }
This file is part of the documentation for kmail Library Version 3.2.2.