Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 1 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. |
Pierre Ossman | 49f8822 | 2009-03-20 13:02:50 +0000 | [diff] [blame] | 2 | * Copyright 2009 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 | #include <rfb/Exception.h> |
| 20 | #include <rfb/CMsgHandler.h> |
Pierre Ossman | 49f8822 | 2009-03-20 13:02:50 +0000 | [diff] [blame] | 21 | #include <rfb/screenTypes.h> |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 22 | |
| 23 | using namespace rfb; |
| 24 | |
| 25 | CMsgHandler::CMsgHandler() |
| 26 | { |
| 27 | } |
| 28 | |
| 29 | CMsgHandler::~CMsgHandler() |
| 30 | { |
| 31 | } |
| 32 | |
| 33 | void CMsgHandler::setDesktopSize(int width, int height) |
| 34 | { |
| 35 | cp.width = width; |
| 36 | cp.height = height; |
| 37 | } |
| 38 | |
Pierre Ossman | 49f8822 | 2009-03-20 13:02:50 +0000 | [diff] [blame] | 39 | void CMsgHandler::setExtendedDesktopSize(int reason, int result, int width, int height) |
| 40 | { |
| 41 | if ((reason == reasonClient) && (result != resultSuccess)) |
| 42 | return; |
| 43 | |
| 44 | cp.width = width; |
| 45 | cp.height = height; |
| 46 | } |
| 47 | |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 48 | void CMsgHandler::setCursor(int w, int h, const Point& hotspot, void* data, void* mask) |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | void CMsgHandler::setPixelFormat(const PixelFormat& pf) |
| 53 | { |
| 54 | cp.setPF(pf); |
| 55 | } |
| 56 | |
| 57 | void CMsgHandler::setName(const char* name) |
| 58 | { |
| 59 | cp.setName(name); |
| 60 | } |
| 61 | |
| 62 | void CMsgHandler::serverInit() |
| 63 | { |
| 64 | throw Exception("CMsgHandler::serverInit called"); |
| 65 | } |
| 66 | |
| 67 | void CMsgHandler::framebufferUpdateStart() |
| 68 | { |
| 69 | } |
| 70 | |
| 71 | void CMsgHandler::framebufferUpdateEnd() |
| 72 | { |
| 73 | } |
| 74 | |
| 75 | void CMsgHandler::beginRect(const Rect& r, unsigned int encoding) |
| 76 | { |
| 77 | } |
| 78 | |
| 79 | void CMsgHandler::endRect(const Rect& r, unsigned int encoding) |
| 80 | { |
| 81 | } |
| 82 | |
| 83 | |
| 84 | void CMsgHandler::setColourMapEntries(int firstColour, int nColours, |
| 85 | rdr::U16* rgbs) |
| 86 | { |
| 87 | throw Exception("CMsgHandler::setColourMapEntries called"); |
| 88 | } |
| 89 | |
| 90 | void CMsgHandler::bell() |
| 91 | { |
| 92 | } |
| 93 | |
Adam Tkac | acf6c6b | 2009-02-13 12:42:05 +0000 | [diff] [blame] | 94 | void CMsgHandler::serverCutText(const char* str, rdr::U32 len) |
Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame] | 95 | { |
| 96 | } |
| 97 | |
| 98 | void CMsgHandler::fillRect(const Rect& r, Pixel pix) |
| 99 | { |
| 100 | } |
| 101 | |
| 102 | void CMsgHandler::imageRect(const Rect& r, void* pixels) |
| 103 | { |
| 104 | } |
| 105 | |
| 106 | void CMsgHandler::copyRect(const Rect& r, int srcX, int srcY) |
| 107 | { |
| 108 | } |
| 109 | |
| 110 | bool CMsgHandler::processFTMsg(int type) |
| 111 | { |
| 112 | return false; |
| 113 | } |
| 114 | |