1 /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. 2 * Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB 3 * Copyright 2012 Samuel Mannehed <samuel@cendio.se> for Cendio AB 4 * 5 * This is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This software is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this software; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 18 * USA. 19 */ 20 #ifndef __PARAMETERS_H__ 21 #define __PARAMETERS_H__ 22 23 #include <rfb/Configuration.h> 24 #include "MonitorIndicesParameter.h" 25 26 #ifdef _WIN32 27 #include <vector> 28 #include <string> 29 #endif 30 31 #define SERVER_HISTORY_SIZE 20 32 33 34 extern rfb::IntParameter pointerEventInterval; 35 extern rfb::BoolParameter emulateMiddleButton; 36 extern rfb::BoolParameter dotWhenNoCursor; 37 38 extern rfb::StringParameter passwordFile; 39 40 extern rfb::BoolParameter autoSelect; 41 extern rfb::BoolParameter fullColour; 42 extern rfb::AliasParameter fullColourAlias; 43 extern rfb::IntParameter lowColourLevel; 44 extern rfb::AliasParameter lowColourLevelAlias; 45 extern rfb::StringParameter preferredEncoding; 46 extern rfb::BoolParameter customCompressLevel; 47 extern rfb::IntParameter compressLevel; 48 extern rfb::BoolParameter noJpeg; 49 extern rfb::IntParameter qualityLevel; 50 51 extern rfb::BoolParameter maximize; 52 extern rfb::BoolParameter fullScreen; 53 extern rfb::StringParameter fullScreenMode; 54 extern rfb::BoolParameter fullScreenAllMonitors; // deprecated 55 extern MonitorIndicesParameter fullScreenSelectedMonitors; 56 extern rfb::StringParameter desktopSize; 57 extern rfb::StringParameter geometry; 58 extern rfb::BoolParameter remoteResize; 59 60 extern rfb::BoolParameter listenMode; 61 62 extern rfb::BoolParameter viewOnly; 63 extern rfb::BoolParameter shared; 64 65 extern rfb::BoolParameter acceptClipboard; 66 extern rfb::BoolParameter setPrimary; 67 extern rfb::BoolParameter sendClipboard; 68 #if !defined(WIN32) && !defined(__APPLE__) 69 extern rfb::BoolParameter sendPrimary; 70 extern rfb::StringParameter display; 71 #endif 72 73 extern rfb::StringParameter menuKey; 74 75 extern rfb::BoolParameter fullscreenSystemKeys; 76 extern rfb::BoolParameter alertOnFatalError; 77 extern rfb::BoolParameter reconnectOnError; 78 79 #ifndef WIN32 80 extern rfb::StringParameter via; 81 #endif 82 83 void saveViewerParameters(const char *filename, const char *servername=NULL); 84 char* loadViewerParameters(const char *filename); 85 86 #ifdef _WIN32 87 void loadHistoryFromRegKey(std::vector<std::string>& serverHistory); 88 void saveHistoryToRegKey(const std::vector<std::string>& serverHistory); 89 #endif 90 91 #endif 92