Changeset 9706 in ntrip for trunk/BNC/src
- Timestamp:
- May 4, 2022, 2:17:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryv2.cpp
r8203 r9706 28 28 _secure = secure; 29 29 _manager = new QNetworkAccessManager(this); 30 connect(_manager, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, 31 QAuthenticator*)), 32 this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&, 33 QAuthenticator*))); 30 connect(_manager, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*)), 31 this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*))); 34 32 _reply = 0; 35 33 _eventLoop = new QEventLoop(this); … … 125 123 if (_url.path().isEmpty()) { 126 124 _url.setPath("/"); 127 }128 129 // Proxy Settings130 // --------------131 bncSettings settings;132 QString proxyHost = settings.value("proxyHost").toString();133 int proxyPort = settings.value("proxyPort").toInt();134 135 if (!proxyHost.isEmpty()) {136 QNetworkProxy proxy(QNetworkProxy::HttpProxy, proxyHost, proxyPort);137 _manager->setProxy(proxy);138 125 } 139 126
Note:
See TracChangeset
for help on using the changeset viewer.