~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to ksysguard/gui/HostConnector.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    KSysGuard, the KDE System Guard
 
3
 
 
4
    Copyright (c) 1999, 2000 Chris Schlaeger <cs@kde.org>
 
5
 
 
6
    This program is free software; you can redistribute it and/or
 
7
    modify it under the terms of version 2 of the GNU General Public
 
8
    License as published by the Free Software Foundation.
 
9
 
 
10
    This program is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
    GNU General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU General Public License
 
16
    along with this program; if not, write to the Free Software
 
17
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
18
 
 
19
*/
 
20
 
 
21
#ifndef KSG_HOSTCONNECTOR_H
 
22
#define KSG_HOSTCONNECTOR_H
 
23
 
 
24
#include <QLabel>
 
25
 
 
26
#include <kdialog.h>
 
27
 
 
28
class KComboBox;
 
29
 
 
30
class QRadioButton;
 
31
class QSpinBox;
 
32
 
 
33
class HostConnector : public KDialog
 
34
{
 
35
  Q_OBJECT
 
36
 
 
37
  public:
 
38
    explicit HostConnector( QWidget *parent, const char *name = 0 );
 
39
    ~HostConnector();
 
40
 
 
41
    void setHostNames( const QStringList &list );
 
42
    QStringList hostNames() const;
 
43
 
 
44
    void setCommands( const QStringList &list );
 
45
    QStringList commands() const;
 
46
 
 
47
    void setCurrentHostName( const QString &hostName );
 
48
 
 
49
    QString currentHostName() const;
 
50
    QString currentCommand() const;
 
51
    int port() const;
 
52
 
 
53
    bool useSsh() const;
 
54
    bool useRsh() const;
 
55
    bool useDaemon() const;
 
56
    bool useCustom() const;
 
57
 
 
58
  protected Q_SLOTS:
 
59
    virtual void slotHelp();
 
60
    void slotHostNameChanged( const QString &_text );
 
61
  private:
 
62
    KComboBox *mCommands;
 
63
    KComboBox *mHostNames;
 
64
 
 
65
    QLabel *mHostNameLabel;
 
66
 
 
67
    QRadioButton *mUseSsh;
 
68
    QRadioButton *mUseRsh;
 
69
    QRadioButton *mUseDaemon;
 
70
    QRadioButton *mUseCustom;
 
71
 
 
72
    QSpinBox *mPort;
 
73
};
 
74
 
 
75
#endif