diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2006-04-16 06:53:44 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2006-04-16 06:53:44 +0000 |
commit | de179d4ed74239bb64d6651fd24a39bbc29bd5d1 (patch) | |
tree | 368e0c2e675f017d92ecf92da93bf1a20ef2f417 /rfb/CMsgWriter.h | |
parent | 32d0d68a5304d7a461e9c34da1dae124a467a98a (diff) | |
download | tigervnc-de179d4ed74239bb64d6651fd24a39bbc29bd5d1.tar.gz tigervnc-de179d4ed74239bb64d6651fd24a39bbc29bd5d1.zip |
The "rfb" library merged with VNC 4.1.1 code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/merge-with-vnc-4.1.1@522 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfb/CMsgWriter.h')
-rw-r--r-- | rfb/CMsgWriter.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/rfb/CMsgWriter.h b/rfb/CMsgWriter.h index 8d6e373c..19be8df9 100644 --- a/rfb/CMsgWriter.h +++ b/rfb/CMsgWriter.h @@ -1,5 +1,5 @@ -/* Copyright (C) 2002-2003 RealVNC Ltd. All Rights Reserved. - * +/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. + * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -22,7 +22,7 @@ #ifndef __RFB_CMSGWRITER_H__ #define __RFB_CMSGWRITER_H__ -#include <rdr/types.h> +#include <rfb/InputHandler.h> namespace rdr { class OutStream; } @@ -32,24 +32,25 @@ namespace rfb { class ConnParams; struct Rect; - class CMsgWriter { + class CMsgWriter : public InputHandler { public: virtual ~CMsgWriter(); + // CMsgWriter abstract interface methods virtual void writeClientInit(bool shared)=0; + virtual void startMsg(int type)=0; + virtual void endMsg()=0; + // CMsgWriter implemented methods virtual void writeSetPixelFormat(const PixelFormat& pf); virtual void writeSetEncodings(int nEncodings, rdr::U32* encodings); virtual void writeSetEncodings(int preferredEncoding, bool useCopyRect); virtual void writeFramebufferUpdateRequest(const Rect& r,bool incremental); - virtual void writeKeyEvent(rdr::U32 key, bool down); - virtual void writePointerEvent(int x, int y, int buttonMask); - virtual void writeClientCutText(const char* str, int len); - - virtual void startMsg(int type)=0; - virtual void endMsg()=0; - virtual void setOutStream(rdr::OutStream* os); + // InputHandler implementation + virtual void keyEvent(rdr::U32 key, bool down); + virtual void pointerEvent(const Point& pos, int buttonMask); + virtual void clientCutText(const char* str, int len); ConnParams* getConnParams() { return cp; } rdr::OutStream* getOutStream() { return os; } |