diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-16 13:12:40 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:42:08 +0200 |
commit | 7638e9c5b1c59abc98e27986b8178f19e5e6cf2a (patch) | |
tree | 3e87cbfbbdc731017a5b0bff751a8b9deaa83c66 /common/rfb/SMsgReader.h | |
parent | 95f1f294d0fd7b006f52d18d39ae0c3116258d91 (diff) | |
download | tigervnc-7638e9c5b1c59abc98e27986b8178f19e5e6cf2a.tar.gz tigervnc-7638e9c5b1c59abc98e27986b8178f19e5e6cf2a.zip |
Merge the "V3" message classes into the normal ones
We have no need for this abstraction so let's keep things simple.
Diffstat (limited to 'common/rfb/SMsgReader.h')
-rw-r--r-- | common/rfb/SMsgReader.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/common/rfb/SMsgReader.h b/common/rfb/SMsgReader.h index e6e40448..00cb3031 100644 --- a/common/rfb/SMsgReader.h +++ b/common/rfb/SMsgReader.h @@ -1,4 +1,5 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. + * Copyright 2009-2014 Pierre Ossman for Cendio AB * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,24 +31,29 @@ namespace rfb { class SMsgReader { public: + SMsgReader(SMsgHandler* handler, rdr::InStream* is); virtual ~SMsgReader(); - virtual void readClientInit()=0; + void readClientInit(); // readMsg() reads a message, calling the handler as appropriate. - virtual void readMsg()=0; + void readMsg(); rdr::InStream* getInStream() { return is; } protected: - virtual void readSetPixelFormat(); - virtual void readSetEncodings(); - virtual void readFramebufferUpdateRequest(); - virtual void readKeyEvent(); - virtual void readPointerEvent(); - virtual void readClientCutText(); + void readSetPixelFormat(); + void readSetEncodings(); + void readSetDesktopSize(); - SMsgReader(SMsgHandler* handler, rdr::InStream* is); + void readFramebufferUpdateRequest(); + void readEnableContinuousUpdates(); + + void readFence(); + + void readKeyEvent(); + void readPointerEvent(); + void readClientCutText(); SMsgHandler* handler; rdr::InStream* is; |