blob: e831478791a060dc53efacfcd8e2459aef7a15f7 [file] [log] [blame]
Pierre Ossman5156d5e2011-03-09 09:42:34 +00001/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
2 * Copyright 2011 Pierre Ossman <ossman@cendio.se> 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
Peter Åstrandc359f362011-08-23 12:04:46 +000020#ifdef HAVE_CONFIG_H
21#include <config.h>
22#endif
23
Pierre Ossman5156d5e2011-03-09 09:42:34 +000024#include "parameters.h"
25
26using namespace rfb;
27
Pierre Ossman4c8e3112011-06-08 17:21:48 +000028IntParameter pointerEventInterval("PointerEventInterval",
29 "Time in milliseconds to rate-limit"
30 " successive pointer events", 0);
Pierre Ossman5156d5e2011-03-09 09:42:34 +000031BoolParameter dotWhenNoCursor("DotWhenNoCursor",
32 "Show the dot cursor when the server sends an "
Pierre Ossman93f37742011-06-09 08:35:34 +000033 "invisible cursor", false);
Pierre Ossman5156d5e2011-03-09 09:42:34 +000034
35StringParameter passwordFile("PasswordFile",
36 "Password file for VNC authentication", "");
37AliasParameter passwd("passwd", "Alias for PasswordFile", &passwordFile);
38
39BoolParameter autoSelect("AutoSelect",
40 "Auto select pixel format and encoding. "
41 "Default if PreferredEncoding and FullColor are not specified.",
42 true);
43BoolParameter fullColour("FullColor",
44 "Use full color", true);
45AliasParameter fullColourAlias("FullColour", "Alias for FullColor", &fullColour);
46IntParameter lowColourLevel("LowColorLevel",
47 "Color level to use on slow connections. "
48 "0 = Very Low (8 colors), 1 = Low (64 colors), "
49 "2 = Medium (256 colors)", 2);
50AliasParameter lowColourLevelAlias("LowColourLevel", "Alias for LowColorLevel", &lowColourLevel);
51StringParameter preferredEncoding("PreferredEncoding",
52 "Preferred encoding to use (Tight, ZRLE, Hextile or"
53 " Raw)", "Tight");
54BoolParameter customCompressLevel("CustomCompressLevel",
55 "Use custom compression level. "
56 "Default if CompressLevel is specified.", false);
57IntParameter compressLevel("CompressLevel",
DRCba7bc512011-08-17 02:30:34 +000058 "Use specified compression level 0 = Low, 6 = High",
Pierre Ossman701ad682011-11-20 15:39:17 +000059 2);
Pierre Ossman5156d5e2011-03-09 09:42:34 +000060BoolParameter noJpeg("NoJPEG",
61 "Disable lossy JPEG compression in Tight encoding.",
62 false);
63IntParameter qualityLevel("QualityLevel",
64 "JPEG quality level. 0 = Low, 9 = High",
65 8);
66
67BoolParameter fullScreen("FullScreen", "Full screen mode", false);
68StringParameter desktopSize("DesktopSize",
69 "Reconfigure desktop size on the server on "
70 "connect (if possible)", "");
71
72BoolParameter viewOnly("ViewOnly",
73 "Don't send any mouse or keyboard events to the server",
74 false);
75BoolParameter shared("Shared",
76 "Don't disconnect other viewers upon connection - "
77 "share the desktop instead",
78 false);
79
80BoolParameter acceptClipboard("AcceptClipboard",
81 "Accept clipboard changes from the server",
82 true);
83BoolParameter sendClipboard("SendClipboard",
84 "Send clipboard changes to the server", true);
85BoolParameter sendPrimary("SendPrimary",
86 "Send the primary selection and cut buffer to the "
87 "server as well as the clipboard selection",
88 true);
89
90StringParameter menuKey("MenuKey", "The key which brings up the popup menu",
91 "F8");
92
Pierre Ossman407a5c32011-05-26 14:48:29 +000093BoolParameter fullscreenSystemKeys("FullscreenSystemKeys",
94 "Pass special keys (like Alt+Tab) directly "
95 "to the server when in full screen mode.",
96 true);
97