Constantin Kaplinsky | a2adc8d | 2006-05-25 05:01:55 +0000 | [diff] [blame^] | 1 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. |
| 2 | * |
| 3 | * This is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation; either version 2 of the License, or |
| 6 | * (at your option) any later version. |
| 7 | * |
| 8 | * This software is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this software; if not, write to the Free Software |
| 15 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 16 | * USA. |
| 17 | */ |
| 18 | #include <rfb/Exception.h> |
| 19 | #include <rfb/CMsgHandler.h> |
| 20 | |
| 21 | using namespace rfb; |
| 22 | |
| 23 | CMsgHandler::CMsgHandler() |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | CMsgHandler::~CMsgHandler() |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | void CMsgHandler::setDesktopSize(int width, int height) |
| 32 | { |
| 33 | cp.width = width; |
| 34 | cp.height = height; |
| 35 | } |
| 36 | |
| 37 | void CMsgHandler::setCursor(int w, int h, const Point& hotspot, void* data, void* mask) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | void CMsgHandler::setPixelFormat(const PixelFormat& pf) |
| 42 | { |
| 43 | cp.setPF(pf); |
| 44 | } |
| 45 | |
| 46 | void CMsgHandler::setName(const char* name) |
| 47 | { |
| 48 | cp.setName(name); |
| 49 | } |
| 50 | |
| 51 | void CMsgHandler::serverInit() |
| 52 | { |
| 53 | throw Exception("CMsgHandler::serverInit called"); |
| 54 | } |
| 55 | |
| 56 | void CMsgHandler::framebufferUpdateStart() |
| 57 | { |
| 58 | } |
| 59 | |
| 60 | void CMsgHandler::framebufferUpdateEnd() |
| 61 | { |
| 62 | } |
| 63 | |
| 64 | void CMsgHandler::beginRect(const Rect& r, unsigned int encoding) |
| 65 | { |
| 66 | } |
| 67 | |
| 68 | void CMsgHandler::endRect(const Rect& r, unsigned int encoding) |
| 69 | { |
| 70 | } |
| 71 | |
| 72 | |
| 73 | void CMsgHandler::setColourMapEntries(int firstColour, int nColours, |
| 74 | rdr::U16* rgbs) |
| 75 | { |
| 76 | throw Exception("CMsgHandler::setColourMapEntries called"); |
| 77 | } |
| 78 | |
| 79 | void CMsgHandler::bell() |
| 80 | { |
| 81 | } |
| 82 | |
| 83 | void CMsgHandler::serverCutText(const char* str, int len) |
| 84 | { |
| 85 | } |
| 86 | |
| 87 | void CMsgHandler::fillRect(const Rect& r, Pixel pix) |
| 88 | { |
| 89 | } |
| 90 | |
| 91 | void CMsgHandler::imageRect(const Rect& r, void* pixels) |
| 92 | { |
| 93 | } |
| 94 | |
| 95 | void CMsgHandler::copyRect(const Rect& r, int srcX, int srcY) |
| 96 | { |
| 97 | } |
| 98 | |
| 99 | bool CMsgHandler::processFTMsg(int type) |
| 100 | { |
| 101 | return false; |
| 102 | } |
| 103 | |