Skip to content

Commit 4b9ca01

Browse files
author
jef
committedMay 10, 2010
fix signal signature of QgsNetworkAccessManager::requestAboutToBeCreated
git-svn-id: http://svn.osgeo.org/qgis/trunk@13461 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 499b773 commit 4b9ca01

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed
 

‎python/core/qgsnetworkaccessmanager.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class QgsNetworkAccessManager : QNetworkAccessManager
5656
void requestCreated( QNetworkReply * );
5757

5858
protected:
59-
virtual QNetworkReply *createRequest( Operation op, const QNetworkRequest & req, QIODevice * outgoingData = 0 );
59+
virtual QNetworkReply *createRequest( Operation op, const QNetworkRequest & req, QIODevice *outgoingData = 0 );
6060

6161
private:
6262
QgsNetworkAccessManager( QObject * );

‎src/app/qgisapp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6529,8 +6529,10 @@ void QgisApp::namSetup()
65296529
connect( nam, SIGNAL( proxyAuthenticationRequired( const QNetworkProxy &, QAuthenticator * ) ),
65306530
this, SLOT( namProxyAuthenticationRequired( const QNetworkProxy &, QAuthenticator * ) ) );
65316531

6532+
#ifdef QT_OPENSSL
65326533
connect( nam, SIGNAL( sslErrors( QNetworkReply *, const QList<QSslError> & ) ),
65336534
this, SLOT( namSslErrors( QNetworkReply *, const QList<QSslError> & ) ) );
6535+
#endif
65346536
}
65356537

65366538
void QgisApp::namAuthenticationRequired( QNetworkReply *reply, QAuthenticator *auth )
@@ -6565,6 +6567,7 @@ void QgisApp::namProxyAuthenticationRequired( const QNetworkProxy &proxy, QAuthe
65656567
auth->setPassword( password );
65666568
}
65676569

6570+
#ifdef QT_OPENSSL
65686571
void QgisApp::namSslErrors( QNetworkReply *reply, const QList<QSslError> &errors )
65696572
{
65706573
QString msg = tr( "SSL errors occured accessing URL %1:" ).arg( reply->request().url().toString() );
@@ -6589,6 +6592,7 @@ void QgisApp::namSslErrors( QNetworkReply *reply, const QList<QSslError> &errors
65896592
reply->ignoreSslErrors();
65906593
}
65916594
}
6595+
#endif
65926596

65936597
void QgisApp::namUpdate()
65946598
{

‎src/app/qgisapp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ class QgisApp : public QMainWindow
404404
//! request credentials for network manager
405405
void namAuthenticationRequired( QNetworkReply *reply, QAuthenticator *auth );
406406
void namProxyAuthenticationRequired( const QNetworkProxy &proxy, QAuthenticator *auth );
407+
#ifdef QT_OPENSSL
407408
void namSslErrors( QNetworkReply *reply, const QList<QSslError> &errors );
409+
#endif
408410

409411
protected:
410412

‎src/core/qgsnetworkaccessmanager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
7474
void setFallbackProxyAndExcludes( const QNetworkProxy &proxy, const QStringList &excludes );
7575

7676
signals:
77-
void requestAboutToBeCreated( Operation, const QNetworkRequest &, QIODevice * );
77+
void requestAboutToBeCreated( QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice * );
7878
void requestCreated( QNetworkReply * );
7979

8080
protected:
81-
virtual QNetworkReply *createRequest( Operation op, const QNetworkRequest & req, QIODevice * outgoingData = 0 );
81+
virtual QNetworkReply *createRequest( QNetworkAccessManager::Operation op, const QNetworkRequest & req, QIODevice * outgoingData = 0 );
8282

8383
private:
8484
QgsNetworkAccessManager( QObject *parent = 0 );

0 commit comments

Comments
 (0)
Please sign in to comment.