2 KSysGuard, the KDE System Guard
4 Copyright (c) 1999, 2000 Chris Schlaeger <cs@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License version 2 or at your option version 3 as published by
9 the Free Software Foundation.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef KSG_HOSTCONNECTOR_H
23 #define KSG_HOSTCONNECTOR_H
34 class HostConnector
: public KDialog
39 explicit HostConnector( QWidget
*parent
, const char *name
= 0 );
42 void setHostNames( const QStringList
&list
);
43 QStringList
hostNames() const;
45 void setCommands( const QStringList
&list
);
46 QStringList
commands() const;
48 void setCurrentHostName( const QString
&hostName
);
50 QString
currentHostName() const;
51 QString
currentCommand() const;
56 bool useDaemon() const;
57 bool useCustom() const;
60 virtual void slotHelp();
61 void slotHostNameChanged( const QString
&_text
);
64 KComboBox
*mHostNames
;
66 QLabel
*mHostNameLabel
;
68 QRadioButton
*mUseSsh
;
69 QRadioButton
*mUseRsh
;
70 QRadioButton
*mUseDaemon
;
71 QRadioButton
*mUseCustom
;