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