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