blob: fa675dcc7fc5eab0add63895584e76c7f6c858e5 [file] [log] [blame]
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +00001/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
Pierre Ossman49f88222009-03-20 13:02:50 +00002 * Copyright 2009 Pierre Ossman for Cendio AB
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +00003 *
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 Ossman49f88222009-03-20 13:02:50 +000021#include <rfb/screenTypes.h>
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000022
23using namespace rfb;
24
25CMsgHandler::CMsgHandler()
26{
27}
28
29CMsgHandler::~CMsgHandler()
30{
31}
32
33void CMsgHandler::setDesktopSize(int width, int height)
34{
35 cp.width = width;
36 cp.height = height;
37}
38
Pierre Ossman49f88222009-03-20 13:02:50 +000039void 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 Kaplinskya2adc8d2006-05-25 05:01:55 +000048void CMsgHandler::setCursor(int w, int h, const Point& hotspot, void* data, void* mask)
49{
50}
51
52void CMsgHandler::setPixelFormat(const PixelFormat& pf)
53{
54 cp.setPF(pf);
55}
56
57void CMsgHandler::setName(const char* name)
58{
59 cp.setName(name);
60}
61
62void CMsgHandler::serverInit()
63{
64 throw Exception("CMsgHandler::serverInit called");
65}
66
67void CMsgHandler::framebufferUpdateStart()
68{
69}
70
71void CMsgHandler::framebufferUpdateEnd()
72{
73}
74
75void CMsgHandler::beginRect(const Rect& r, unsigned int encoding)
76{
77}
78
79void CMsgHandler::endRect(const Rect& r, unsigned int encoding)
80{
81}
82
83
84void CMsgHandler::setColourMapEntries(int firstColour, int nColours,
85 rdr::U16* rgbs)
86{
87 throw Exception("CMsgHandler::setColourMapEntries called");
88}
89
90void CMsgHandler::bell()
91{
92}
93
Adam Tkacacf6c6b2009-02-13 12:42:05 +000094void CMsgHandler::serverCutText(const char* str, rdr::U32 len)
Constantin Kaplinskya2adc8d2006-05-25 05:01:55 +000095{
96}
97
98void CMsgHandler::fillRect(const Rect& r, Pixel pix)
99{
100}
101
102void CMsgHandler::imageRect(const Rect& r, void* pixels)
103{
104}
105
106void CMsgHandler::copyRect(const Rect& r, int srcX, int srcY)
107{
108}
109
110bool CMsgHandler::processFTMsg(int type)
111{
112 return false;
113}
114