kmail Library API Documentation

transportmanager.cpp

00001 /* 00002 transportmanager.cpp 00003 00004 KMail, the KDE mail client. 00005 Copyright (c) 2002 Ingo Kloecker <kloecker@kde.org> 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License, 00009 version 2.0, as published by the Free Software Foundation. 00010 You should have received a copy of the GNU General Public License 00011 along with this program; if not, write to the Free Software Foundation, 00012 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US 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 } // namespace KMail
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003