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.

parameters.h 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB
  3. * Copyright 2012 Samuel Mannehed <samuel@cendio.se> for Cendio AB
  4. *
  5. * This is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This software is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this software; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  18. * USA.
  19. */
  20. #ifndef __PARAMETERS_H__
  21. #define __PARAMETERS_H__
  22. #include <rfb/Configuration.h>
  23. #include "MonitorIndicesParameter.h"
  24. #ifdef _WIN32
  25. #include <vector>
  26. #include <string>
  27. #endif
  28. #define SERVER_HISTORY_SIZE 20
  29. extern rfb::IntParameter pointerEventInterval;
  30. extern rfb::BoolParameter emulateMiddleButton;
  31. extern rfb::BoolParameter dotWhenNoCursor;
  32. extern rfb::StringParameter passwordFile;
  33. extern rfb::BoolParameter autoSelect;
  34. extern rfb::BoolParameter fullColour;
  35. extern rfb::AliasParameter fullColourAlias;
  36. extern rfb::IntParameter lowColourLevel;
  37. extern rfb::AliasParameter lowColourLevelAlias;
  38. extern rfb::StringParameter preferredEncoding;
  39. extern rfb::BoolParameter customCompressLevel;
  40. extern rfb::IntParameter compressLevel;
  41. extern rfb::BoolParameter noJpeg;
  42. extern rfb::IntParameter qualityLevel;
  43. extern rfb::BoolParameter maximize;
  44. extern rfb::BoolParameter fullScreen;
  45. extern rfb::StringParameter fullScreenMode;
  46. extern rfb::BoolParameter fullScreenAllMonitors; // deprecated
  47. extern MonitorIndicesParameter fullScreenSelectedMonitors;
  48. extern rfb::StringParameter desktopSize;
  49. extern rfb::StringParameter geometry;
  50. extern rfb::BoolParameter remoteResize;
  51. extern rfb::BoolParameter listenMode;
  52. extern rfb::BoolParameter viewOnly;
  53. extern rfb::BoolParameter shared;
  54. extern rfb::BoolParameter acceptClipboard;
  55. extern rfb::BoolParameter setPrimary;
  56. extern rfb::BoolParameter sendClipboard;
  57. #if !defined(WIN32) && !defined(__APPLE__)
  58. extern rfb::BoolParameter sendPrimary;
  59. extern rfb::StringParameter display;
  60. #endif
  61. extern rfb::StringParameter menuKey;
  62. extern rfb::BoolParameter fullscreenSystemKeys;
  63. extern rfb::BoolParameter alertOnFatalError;
  64. extern rfb::BoolParameter reconnectOnError;
  65. #ifndef WIN32
  66. extern rfb::StringParameter via;
  67. #endif
  68. void saveViewerParameters(const char *filename, const char *servername=NULL);
  69. char* loadViewerParameters(const char *filename);
  70. #ifdef _WIN32
  71. void loadHistoryFromRegKey(std::vector<std::string>& serverHistory);
  72. void saveHistoryToRegKey(const std::vector<std::string>& serverHistory);
  73. #endif
  74. #endif