summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/vnc/qvncscreen.h
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2016-06-15 15:07:41 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-06-28 10:18:34 +0000
commit2cf3696d9f11ae2aa2dba56a0774bea10d59a482 (patch)
tree79af23327f69f8549a80282ff8f123d152fee066 /src/plugins/platforms/vnc/qvncscreen.h
parent2204e9a7c48faf35e41bd338da7efaad78b8efff (diff)
Support multiple connected clients in the VNC plugin
Previously it was only possible for one client to connect at a time. Now it is possible for multiple clients to connect to the VNC server and view and interact with the application. Change-Id: I886583a3abea2955367bf2da490127b041b5c5fb Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/vnc/qvncscreen.h')
-rw-r--r--src/plugins/platforms/vnc/qvncscreen.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/platforms/vnc/qvncscreen.h b/src/plugins/platforms/vnc/qvncscreen.h
index db2d3ac959..e3c6651781 100644
--- a/src/plugins/platforms/vnc/qvncscreen.h
+++ b/src/plugins/platforms/vnc/qvncscreen.h
@@ -50,6 +50,7 @@ class QTcpSocket;
class QVncServer;
class QVncDirtyMap;
class QVncClientCursor;
+class QVncClient;
class QVncScreen : public QFbScreen
{
@@ -65,12 +66,16 @@ public:
QRegion doRedraw() Q_DECL_OVERRIDE;
QImage *image() const { return mScreenImage; }
- void enableClientCursor();
- void disableClientCursor();
+ void enableClientCursor(QVncClient *client);
+ void disableClientCursor(QVncClient *client);
QPlatformCursor *cursor() const Q_DECL_OVERRIDE;
void clearDirty() { dirtyRegion = QRegion(); }
+#if Q_BYTE_ORDER == Q_BIG_ENDIAN
+ bool swapBytes() const
+#endif
+
QStringList mArgs;
qreal dpiX = 96;