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