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