Diffstat (limited to 'noncore/comm/keypebble/kvncconnectdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/kvncconnectdlg.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/comm/keypebble/kvncconnectdlg.h b/noncore/comm/keypebble/kvncconnectdlg.h new file mode 100644 index 0000000..cf34aab --- a/dev/null +++ b/noncore/comm/keypebble/kvncconnectdlg.h | |||
@@ -0,0 +1,39 @@ | |||
1 | // -*- c++ -*- | ||
2 | |||
3 | #ifndef KVNCCONNECTDLG_H | ||
4 | #define KVNCCONNECTDLG_H | ||
5 | |||
6 | #include <qdialog.h> | ||
7 | #include <qspinbox.h> | ||
8 | #include <qcombobox.h> | ||
9 | #include <qlineedit.h> | ||
10 | #include <qurl.h> | ||
11 | |||
12 | class KRFBConnection; | ||
13 | |||
14 | class KVNCConnectDlg : public QDialog | ||
15 | { | ||
16 | Q_OBJECT | ||
17 | |||
18 | public: | ||
19 | KVNCConnectDlg( KRFBConnection *con, | ||
20 | QWidget *parent = 0, const char *name = 0 ); | ||
21 | |||
22 | QString hostname() { return hostNameCombo->currentText(); }; | ||
23 | int display() { return displayNumberEdit->value(); }; | ||
24 | QString password() const { return passwordEdit->text(); } | ||
25 | |||
26 | protected: | ||
27 | void accept(); | ||
28 | |||
29 | protected slots: | ||
30 | void options(); | ||
31 | |||
32 | private: | ||
33 | QComboBox *hostNameCombo; | ||
34 | QSpinBox *displayNumberEdit; | ||
35 | QLineEdit *passwordEdit; | ||
36 | KRFBConnection *con; | ||
37 | }; | ||
38 | |||
39 | #endif // KVNCCONNECTDLG_H | ||