aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-10-05 17:30:52 +0200
committerPierre Ossman <ossman@cendio.se>2018-10-10 13:07:59 +0200
commitb68434129bc7be45718940b999e0c93f773d1883 (patch)
treef695fcd9f9c4f887472434e41167bb1b83377ada /common/rfb/VNCServerST.h
parent6094ced7978358335438310aca84484fbfcdb1fa (diff)
downloadtigervnc-b68434129bc7be45718940b999e0c93f773d1883.tar.gz
tigervnc-b68434129bc7be45718940b999e0c93f773d1883.zip
Encapsulate event handling in VNCServerST
There is some client coordination needed which is better encapsulated inside VNCServerST. This also helps hiding the desktop from the individual clients.
Diffstat (limited to 'common/rfb/VNCServerST.h')
-rw-r--r--common/rfb/VNCServerST.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h
index ef83619c..eff52d07 100644
--- a/common/rfb/VNCServerST.h
+++ b/common/rfb/VNCServerST.h
@@ -120,6 +120,11 @@ namespace rfb {
const char* getName() const { return name.buf; }
unsigned getLEDState() const { return ledState; }
+ // Event handlers
+ void keyEvent(rdr::U32 keysym, rdr::U32 keycode, bool down);
+ void pointerEvent(VNCSConnectionST* client, const Point& pos, int buttonMask);
+ void clientCutText(const char* str, int len);
+
// closeClients() closes all RFB sessions, except the specified one (if
// any), and logs the specified reason for closure.
void closeClients(const char* reason, network::Socket* sock);