Changeset 66590 in vbox
- Timestamp:
- Apr 17, 2017 2:17:24 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114617
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.cpp
r66589 r66590 51 51 { 52 52 /* default settings */ 53 proxySettings = QString::null;54 53 hostScreenSaverDisabled = false; 55 54 } … … 57 56 VBoxGlobalSettingsData::VBoxGlobalSettingsData (const VBoxGlobalSettingsData &that) 58 57 { 59 proxySettings = that.proxySettings;60 58 hostScreenSaverDisabled = that.hostScreenSaverDisabled; 61 59 } … … 68 66 { 69 67 return this == &that || 70 (proxySettings == that.proxySettings && 71 hostScreenSaverDisabled == that.hostScreenSaverDisabled 68 (hostScreenSaverDisabled == that.hostScreenSaverDisabled 72 69 ); 73 70 } … … 88 85 gPropertyMap[] = 89 86 { 90 { "GUI/ProxySettings", "proxySettings", "[\\s\\S]*", true },91 87 { "GUI/HostScreenSaverDisabled", "hostScreenSaverDisabled", "true|false", true } 92 88 }; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.h
r66589 r66590 37 37 private: 38 38 39 QString proxySettings;40 39 bool hostScreenSaverDisabled; 41 40 … … 48 47 { 49 48 Q_OBJECT 50 Q_PROPERTY (QString proxySettings READ proxySettings WRITE setProxySettings)51 49 Q_PROPERTY (bool hostScreenSaverDisabled READ hostScreenSaverDisabled WRITE setHostScreenSaverDisabled) 52 50 … … 63 61 64 62 // Properties 65 66 QString proxySettings() const { return data()->proxySettings; }67 void setProxySettings (const QString &aProxySettings)68 {69 mData()->proxySettings = aProxySettings;70 }71 63 72 64 bool hostScreenSaverDisabled() const { return data()->hostScreenSaverDisabled; } -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r66589 r66590 61 61 const char* UIExtraDataDefs::GUI_Input_AutoCapture = "GUI/Input/AutoCapture"; 62 62 const char* UIExtraDataDefs::GUI_RemapScancodes = "GUI/RemapScancodes"; 63 64 /* Settings: Proxy: */ 65 const char* UIExtraDataDefs::GUI_ProxySettings = "GUI/ProxySettings"; 63 66 64 67 /* Settings: Storage: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r66589 r66590 96 96 /** Holds Runtime UI remapped scan codes. */ 97 97 extern const char* GUI_RemapScancodes; 98 /** @} */ 99 100 /** @name Settings: Proxy 101 * @{ */ 102 /** Holds VBox proxy settings. */ 103 extern const char* GUI_ProxySettings; 98 104 /** @} */ 99 105 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r66589 r66590 2492 2492 } 2493 2493 2494 QString UIExtraDataManager::proxySettings() 2495 { 2496 return extraDataString(GUI_ProxySettings); 2497 } 2498 2499 void UIExtraDataManager::setProxySettings(const QString &strSettings) 2500 { 2501 setExtraDataString(GUI_ProxySettings, strSettings); 2502 } 2503 2494 2504 QString UIExtraDataManager::recentFolderForHardDrives() 2495 2505 { -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r66589 r66590 231 231 /** Returns the Runtime UI remapped scan codes. */ 232 232 QString remappedScanCodes(); 233 /** @} */ 234 235 /** @name Settings: Proxy 236 * @{ */ 237 /** Returns VBox proxy settings. */ 238 QString proxySettings(); 239 /** Defines VBox proxy @a strSettings. */ 240 void setProxySettings(const QString &strSettings); 233 241 /** @} */ 234 242 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp
r62493 r66590 31 31 # include "UINetworkReply.h" 32 32 # include "UINetworkManager.h" 33 # include "UIExtraDataManager.h" 33 34 # ifndef VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS 34 35 # include "VBoxGlobal.h" … … 387 388 #ifndef VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS 388 389 /* Get the proxy-manager: */ 389 UIProxyManager proxyManager( vboxGlobal().settings().proxySettings());390 UIProxyManager proxyManager(gEDataManager->proxySettings()); 390 391 391 392 /* If the specific proxy settings are enabled, we'll use them -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
r66568 r66590 26 26 # include "QIWidgetValidator.h" 27 27 # include "UIGlobalSettingsProxy.h" 28 # include "UIExtraDataManager.h" 28 29 # include "VBoxUtils.h" 29 30 … … 90 91 91 92 /* Gather old proxy data: */ 92 UIProxyManager proxyManager( m_settings.proxySettings());93 UIProxyManager proxyManager(gEDataManager->proxySettings()); 93 94 oldProxyData.m_enmProxyState = proxyManager.proxyState(); 94 95 oldProxyData.m_strProxyHost = proxyManager.proxyHost(); … … 151 152 proxyManager.setProxyHost(m_pCache->data().m_strProxyHost); 152 153 proxyManager.setProxyPort(m_pCache->data().m_strProxyPort); 153 m_settings.setProxySettings(proxyManager.toString());154 gEDataManager->setProxySettings(proxyManager.toString()); 154 155 } 155 156
Note:
See TracChangeset
for help on using the changeset viewer.