kmail

accountcombobox.h
1 /*
2  * Copyright (c) 2004 David Faure <faure@kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 of the License
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16  *
17  * In addition, as a special exception, the copyright holders give
18  * permission to link the code of this program with any edition of
19  * the TQt library by Trolltech AS, Norway (or with modified versions
20  * of TQt that use the same license as TQt), and distribute linked
21  * combinations including the two. You must obey the GNU General
22  * Public License in all respects for all of the code used other than
23  * TQt. If you modify this file, you may extend this exception to
24  * your version of the file, but you are not obligated to do so. If
25  * you do not wish to do so, delete this exception statement from
26  * your version.
27  */
28 #ifndef KMAIL_ACCOUNTCOMBOBOX_H
29 #define KMAIL_ACCOUNTCOMBOBOX_H
30 
31 #include <tqcombobox.h>
32 
33 class KMAccount;
34 
35 namespace KMail {
36 
42 class AccountComboBox : public TQComboBox
43 {
44  TQ_OBJECT
45 
46 
47 public:
48  AccountComboBox( TQWidget* parent, const char* name = 0 );
49 
50  void setCurrentAccount( KMAccount* account );
51  KMAccount* currentAccount() const;
52 
53 private slots:
54  void slotRefreshAccounts();
55 private:
56  TQValueList<KMAccount *> applicableAccounts() const;
57 };
58 
59 
60 } // namespace
61 
62 #endif
A readonly combobox showing the accounts, to select one.
folderdiaquotatab.h
Definition: aboutdata.cpp:40