kmail
accountcombobox.h
Go to the documentation of this file.00001 /* -*- mode: C++ -*- 00002 * Copyright (c) 2004 David Faure <faure@kde.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; version 2 of the License 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00016 * 00017 * In addition, as a special exception, the copyright holders give 00018 * permission to link the code of this program with any edition of 00019 * the Qt library by Trolltech AS, Norway (or with modified versions 00020 * of Qt that use the same license as Qt), and distribute linked 00021 * combinations including the two. You must obey the GNU General 00022 * Public License in all respects for all of the code used other than 00023 * Qt. If you modify this file, you may extend this exception to 00024 * your version of the file, but you are not obligated to do so. If 00025 * you do not wish to do so, delete this exception statement from 00026 * your version. 00027 */ 00028 #ifndef KMAIL_ACCOUNTCOMBOBOX_H 00029 #define KMAIL_ACCOUNTCOMBOBOX_H 00030 00031 //Added by qt3to4: 00032 #include <QList> 00033 00034 #include <KComboBox> 00035 00036 class KMAccount; 00037 00038 namespace KMail { 00039 00045 class AccountComboBox : public KComboBox 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 AccountComboBox( QWidget* parent ); 00051 00052 void setCurrentAccount( KMAccount* account ); 00053 KMAccount* currentAccount() const; 00054 00055 private slots: 00056 void slotRefreshAccounts(); 00057 private: 00058 QList<KMAccount *> applicableAccounts() const; 00059 }; 00060 00061 00062 } // namespace 00063 00064 #endif
KDE 4.2 API Reference