VirtualBox

Changeset 58310 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 19, 2015 3:35:17 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103508
Message:

FE/Qt: Networking cleanup/rework (part 15): Get rid of Qt proxy stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r57954 r58310  
    5252/* GUI includes: */
    5353# include "VBoxGlobal.h"
    54 # include "VBoxUtils.h"
    5554# include "UISelectorWindow.h"
    5655# include "UIMessageCenter.h"
     
    15551554    return session;
    15561555}
    1557 
    1558 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    1559 void VBoxGlobal::reloadProxySettings()
    1560 {
    1561     UIProxyManager proxyManager(settings().proxySettings());
    1562     if (proxyManager.authEnabled())
    1563     {
    1564         proxyManager.setAuthEnabled(false);
    1565         proxyManager.setAuthLogin(QString());
    1566         proxyManager.setAuthPassword(QString());
    1567         VBoxGlobalSettings globalSettings = settings();
    1568         globalSettings.setProxySettings(proxyManager.toString());
    1569         vboxGlobal().setSettings(globalSettings);
    1570     }
    1571     if (proxyManager.proxyEnabled())
    1572     {
    1573 #if 0
    1574         QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::HttpProxy,
    1575                                                          proxyManager.proxyHost(),
    1576                                                          proxyManager.proxyPort().toInt(),
    1577                                                          proxyManager.authEnabled() ? proxyManager.authLogin() : QString(),
    1578                                                          proxyManager.authEnabled() ? proxyManager.authPassword() : QString()));
    1579 #else
    1580         QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::HttpProxy,
    1581                                                          proxyManager.proxyHost(),
    1582                                                          proxyManager.proxyPort().toInt()));
    1583 #endif
    1584     }
    1585     else
    1586     {
    1587         QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::NoProxy));
    1588     }
    1589 }
    1590 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    15911556
    15921557void VBoxGlobal::createMedium(const UIMedium &medium)
     
    38703835}
    38713836
    3872 void VBoxGlobal::sltProcessGlobalSettingChange()
    3873 {
    3874 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    3875     /* Reload proxy settings: */
    3876     reloadProxySettings();
    3877 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    3878 }
    3879 
    38803837// Protected members
    38813838////////////////////////////////////////////////////////////////////////////////
     
    43734330        startMediumEnumeration();
    43744331
    4375     /* Prepare global settings change handler: */
    4376     connect(&settings(), SIGNAL(propertyChanged(const char*, const char*)),
    4377             this, SLOT(sltProcessGlobalSettingChange()));
    4378     /* Handle global settings change for the first time: */
    4379     sltProcessGlobalSettingChange();
    4380 
    43814332    /* Create shortcut pool: */
    43824333    UIShortcutPool::create();
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r57952 r58310  
    338338    CSession openExistingSession(const QString &aId) { return openSession(aId, KLockType_Shared); }
    339339
    340 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    341     void reloadProxySettings();
    342 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    343 
    344340    /* API: Medium-processing stuff: */
    345341    void createMedium(const UIMedium &medium);
     
    494490
    495491    void sltGUILanguageChange(QString strLang);
    496     void sltProcessGlobalSettingChange();
    497492
    498493protected slots:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette