summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/kvncconnectdlg.h
blob: cf34aab6af20f15d7c75d36a19dcbd383d5ef06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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