You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMsgHandler.cxx 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyright 2009 Pierre Ossman for Cendio AB
  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>
  21. #include <rfb/screenTypes.h>
  22. using namespace rfb;
  23. CMsgHandler::CMsgHandler()
  24. {
  25. }
  26. CMsgHandler::~CMsgHandler()
  27. {
  28. }
  29. void CMsgHandler::setDesktopSize(int width, int height)
  30. {
  31. cp.width = width;
  32. cp.height = height;
  33. }
  34. void CMsgHandler::setExtendedDesktopSize(int reason, int result, int width, int height)
  35. {
  36. if ((reason == reasonClient) && (result != resultSuccess))
  37. return;
  38. cp.width = width;
  39. cp.height = height;
  40. }
  41. void CMsgHandler::setCursor(int w, int h, const Point& hotspot, void* data, void* mask)
  42. {
  43. }
  44. void CMsgHandler::setPixelFormat(const PixelFormat& pf)
  45. {
  46. cp.setPF(pf);
  47. }
  48. void CMsgHandler::setName(const char* name)
  49. {
  50. cp.setName(name);
  51. }
  52. void CMsgHandler::serverInit()
  53. {
  54. throw Exception("CMsgHandler::serverInit called");
  55. }
  56. void CMsgHandler::framebufferUpdateStart()
  57. {
  58. }
  59. void CMsgHandler::framebufferUpdateEnd()
  60. {
  61. }
  62. void CMsgHandler::beginRect(const Rect& r, unsigned int encoding)
  63. {
  64. }
  65. void CMsgHandler::endRect(const Rect& r, unsigned int encoding)
  66. {
  67. }
  68. void CMsgHandler::setColourMapEntries(int firstColour, int nColours,
  69. rdr::U16* rgbs)
  70. {
  71. throw Exception("CMsgHandler::setColourMapEntries called");
  72. }
  73. void CMsgHandler::bell()
  74. {
  75. }
  76. void CMsgHandler::serverCutText(const char* str, rdr::U32 len)
  77. {
  78. }
  79. void CMsgHandler::fillRect(const Rect& r, Pixel pix)
  80. {
  81. }
  82. void CMsgHandler::imageRect(const Rect& r, void* pixels)
  83. {
  84. }
  85. void CMsgHandler::copyRect(const Rect& r, int srcX, int srcY)
  86. {
  87. }
  88. bool CMsgHandler::processFTMsg(int type)
  89. {
  90. return false;
  91. }