00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KSG_HOSTCONNECTOR_H
00022 #define KSG_HOSTCONNECTOR_H
00023
00024 #include <kdialogbase.h>
00025
00026 class KComboBox;
00027
00028 class TQLabel;
00029 class TQRadioButton;
00030 class TQSpinBox;
00031
00032 class HostConnector : public KDialogBase
00033 {
00034 Q_OBJECT
00035
00036 public:
00037 HostConnector( TQWidget *parent, const char *name = 0 );
00038 ~HostConnector();
00039
00040 void setHostNames( const TQStringList &list );
00041 TQStringList hostNames() const;
00042
00043 void setCommands( const TQStringList &list );
00044 TQStringList commands() const;
00045
00046 void setCurrentHostName( const TQString &hostName );
00047
00048 TQString currentHostName() const;
00049 TQString currentCommand() const;
00050 int port() const;
00051
00052 bool useSsh() const;
00053 bool useRsh() const;
00054 bool useDaemon() const;
00055 bool useCustom() const;
00056
00057 protected slots:
00058 virtual void slotHelp();
00059 void slotHostNameChanged( const TQString &_text );
00060 private:
00061 KComboBox *mCommands;
00062 KComboBox *mHostNames;
00063
00064 TQLabel *mHostNameLabel;
00065
00066 TQRadioButton *mUseSsh;
00067 TQRadioButton *mUseRsh;
00068 TQRadioButton *mUseDaemon;
00069 TQRadioButton *mUseCustom;
00070
00071 TQSpinBox *mPort;
00072 };
00073
00074 #endif