Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 1 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. |
Pierre Ossman | c754cce | 2011-11-14 15:44:11 +0000 | [diff] [blame] | 2 | * Copyright 2009-2011 Pierre Ossman for Cendio AB |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 3 | * |
| 4 | * This is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This software is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this software; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 17 | * USA. |
| 18 | */ |
| 19 | #ifndef __RFB_CMSGWRITERV3_H__ |
| 20 | #define __RFB_CMSGWRITERV3_H__ |
| 21 | |
| 22 | #include <rfb/CMsgWriter.h> |
| 23 | |
| 24 | namespace rfb { |
| 25 | class CMsgWriterV3 : public CMsgWriter { |
| 26 | public: |
| 27 | CMsgWriterV3(ConnParams* cp, rdr::OutStream* os); |
| 28 | virtual ~CMsgWriterV3(); |
| 29 | |
| 30 | virtual void writeClientInit(bool shared); |
| 31 | virtual void startMsg(int type); |
| 32 | virtual void endMsg(); |
| 33 | |
Pierre Ossman | e7a41d5 | 2009-03-23 16:48:35 +0000 | [diff] [blame] | 34 | virtual void writeSetDesktopSize(int width, int height, |
| 35 | const ScreenSet& layout); |
Pierre Ossman | c754cce | 2011-11-14 15:44:11 +0000 | [diff] [blame] | 36 | virtual void writeFence(rdr::U32 flags, unsigned len, const char data[]); |
Pierre Ossman | c898d9a | 2011-11-14 16:22:23 +0000 | [diff] [blame] | 37 | virtual void writeEnableContinuousUpdates(bool enable, |
| 38 | int x, int y, int w, int h); |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 39 | }; |
| 40 | } |
| 41 | #endif |