summaryrefslogtreecommitdiffstats
path: root/common/rfb/CopyRectDecoder.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-01-31 11:21:51 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:42:08 +0200
commitd704e4ae77724abca7835f53390dacbfe1b09f9f (patch)
treeafeeea0cb8e54240ce7fc8648f92f12599af81f7 /common/rfb/CopyRectDecoder.h
parent4aba19e287b0105bb47777762ce14b3786d91019 (diff)
downloadtigervnc-d704e4ae77724abca7835f53390dacbfe1b09f9f.tar.gz
tigervnc-d704e4ae77724abca7835f53390dacbfe1b09f9f.zip
Handle CopyRect like any other encoding
Avoids having to special case things. Keeps the code simpler.
Diffstat (limited to 'common/rfb/CopyRectDecoder.h')
-rw-r--r--common/rfb/CopyRectDecoder.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/rfb/CopyRectDecoder.h b/common/rfb/CopyRectDecoder.h
new file mode 100644
index 00000000..e265ee42
--- /dev/null
+++ b/common/rfb/CopyRectDecoder.h
@@ -0,0 +1,32 @@
+/* Copyright 2014 Pierre Ossman <ossman@cendio.se> 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ * USA.
+ */
+#ifndef __RFB_COPYRECTDECODER_H__
+#define __RFB_COPYRECTDECODER_H__
+
+#include <rfb/Decoder.h>
+
+namespace rfb {
+
+ class CopyRectDecoder : public Decoder {
+ public:
+ CopyRectDecoder(CMsgReader* reader);
+ virtual ~CopyRectDecoder();
+ virtual void readRect(const Rect& r, CMsgHandler* handler);
+ };
+}
+#endif