Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kdm / kfrontend / kchooser.h
blob7bc53676e5fd52e9695eb3dab60ab49536c4d922
1 /*
3 chooser widget for KDM
5 Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
6 based on the chooser (C) 1999 by Harald Hoyer <Harald.Hoyer@RedHat.de>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef KCHOOSER_H
25 #define KCHOOSER_H
27 #include "kgdialog.h"
29 class ChooserListViewItem;
31 class QLineEdit;
32 class QSocketNotifier;
33 class QTreeWidget;
35 class ChooserDlg : public KGDialog {
36 Q_OBJECT
37 typedef KGDialog inherited;
39 public:
40 ChooserDlg();
42 public Q_SLOTS:
43 void slotReadPipe();
44 void addHostname();
45 // void slotHelp();
46 void pingHosts();
47 void accept();
48 void reject();
50 private:
51 QString recvStr();
52 ChooserListViewItem *findItem( int id );
54 QTreeWidget *host_view;
55 QLineEdit *iline;
56 QSocketNotifier *sn;
59 #endif /* KCHOOSER_H */