00001 /* 00002 00003 chooser widget for KDM 00004 00005 Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org> 00006 based on the chooser (C) 1999 by Harald Hoyer <Harald.Hoyer@RedHat.de> 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 00022 */ 00023 00024 #ifndef KCHOOSER_H 00025 #define KCHOOSER_H 00026 00027 #include "kgdialog.h" 00028 00029 class TQSocketNotifier; 00030 class TQPopupMenu; 00031 class TQLineEdit; 00032 class TQListView; 00033 class TQListViewItem; 00034 00035 class ChooserDlg : public KGDialog { 00036 Q_OBJECT 00037 typedef KGDialog inherited; 00038 00039 public: 00040 ChooserDlg(); 00041 00042 public slots: 00043 void slotReadPipe(); 00044 void addHostname(); 00045 // void slotHelp(); 00046 void pingHosts(); 00047 void accept(); 00048 void reject(); 00049 00050 private: 00051 TQString recvStr(); 00052 TQListViewItem *findItem( int id ); 00053 00054 TQListView *host_view; 00055 TQLineEdit *iline; 00056 TQSocketNotifier *sn; 00057 }; 00058 00059 #endif /* KCHOOSER_H */
1.6.1