summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/krfbconnection.h
Side-by-side diff
Diffstat (limited to 'noncore/comm/keypebble/krfbconnection.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/krfbconnection.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/noncore/comm/keypebble/krfbconnection.h b/noncore/comm/keypebble/krfbconnection.h
index fe477c1..a8d3457 100644
--- a/noncore/comm/keypebble/krfbconnection.h
+++ b/noncore/comm/keypebble/krfbconnection.h
@@ -8,2 +8,3 @@
#include <qcstring.h>
+#include "krfbserver.h"
#include <qurl.h>
@@ -12,3 +13,3 @@ class KRFBLogin;
class KRBUpdateHandler;
-class KRFBOptions;
+class KRFBServer;
class QSocket;
@@ -47,3 +48,3 @@ public:
//* Get the options for this connection
- KRFBOptions *options() const { return options_; };
+ KRFBServer *options() const { return options_; };
@@ -59,7 +60,4 @@ public:
- //* Set the password which will be used to login
- void setPassword( const QCString &pass );
-
//* Open a connection
- void connectTo( const QCString &host, int display );
+ void connectTo( KRFBServer);
@@ -69,6 +67,6 @@ public:
//* Get the host
- const QCString host() const { return host_; };
+ const QCString host() const { return options_->hostname.latin1(); };
//* Get the display
- int display() const { return display_; };
+ int display() const { return options_->display; };
@@ -135,6 +133,3 @@ private:
private:
- QCString host_;
int portBase_;
- int display_;
- QCString pass_;
QSocket *sock;
@@ -145,3 +140,3 @@ private:
KRFBDecoder *decoder_;
- KRFBOptions *options_;
+ KRFBServer *options_;
KRFBBuffer *buffer_;