dtor first
[personal-kdebase.git] / workspace / ksysguard / gui / HostConnector.h
blob77e6511e7491ac02ecb5d394eed5afa29a8ec988
1 /*
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
25 #include <QLabel>
27 #include <kdialog.h>
29 class KComboBox;
31 class QRadioButton;
32 class QSpinBox;
34 class HostConnector : public KDialog
36 Q_OBJECT
38 public:
39 explicit HostConnector( QWidget *parent, const char *name = 0 );
40 ~HostConnector();
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;
52 int port() const;
54 bool useSsh() const;
55 bool useRsh() const;
56 bool useDaemon() const;
57 bool useCustom() const;
59 protected Q_SLOTS:
60 virtual void slotHelp();
61 void slotHostNameChanged( const QString &_text );
62 private:
63 KComboBox *mCommands;
64 KComboBox *mHostNames;
66 QLabel *mHostNameLabel;
68 QRadioButton *mUseSsh;
69 QRadioButton *mUseRsh;
70 QRadioButton *mUseDaemon;
71 QRadioButton *mUseCustom;
73 QSpinBox *mPort;
76 #endif