summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/kvncconnectdlg.h
Side-by-side diff
Diffstat (limited to 'noncore/comm/keypebble/kvncconnectdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/kvncconnectdlg.h39
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 @@
+// -*- c++ -*-
+
+#ifndef KVNCCONNECTDLG_H
+#define KVNCCONNECTDLG_H
+
+#include <qdialog.h>
+#include <qspinbox.h>
+#include <qcombobox.h>
+#include <qlineedit.h>
+#include <qurl.h>
+
+class KRFBConnection;
+
+class KVNCConnectDlg : public QDialog
+{
+ Q_OBJECT
+
+public:
+ KVNCConnectDlg( KRFBConnection *con,
+ QWidget *parent = 0, const char *name = 0 );
+
+ QString hostname() { return hostNameCombo->currentText(); };
+ int display() { return displayNumberEdit->value(); };
+ QString password() const { return passwordEdit->text(); }
+
+protected:
+ void accept();
+
+protected slots:
+ void options();
+
+private:
+ QComboBox *hostNameCombo;
+ QSpinBox *displayNumberEdit;
+ QLineEdit *passwordEdit;
+ KRFBConnection *con;
+};
+
+#endif // KVNCCONNECTDLG_H