QGIS API Documentation  3.6.0-Noosa (5873452)
Classes | Macros | Variables
qgsnetworkaccessmanager.h File Reference
#include <QList>
#include "qgsnetworkreply.h"
#include "qgis_sip.h"
#include <QStringList>
#include <QNetworkAccessManager>
#include <QNetworkProxy>
#include <QNetworkRequest>
#include <QMutex>
#include <QWaitCondition>
#include <memory>
#include "qgis_core.h"
#include "qgsconfig.h"
Include dependency graph for qgsnetworkaccessmanager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QgsNetworkAccessManager
 network access manager for QGISThis class implements the QGIS network access manager. More...
 
class  QgsNetworkAuthenticationHandler
 Network authentication handler, used for responding to network authentication requests during network requests. More...
 
class  QgsNetworkRequestParameters
 Encapsulates parameters and properties of a network request. More...
 
class  QgsSslErrorHandler
 SSL error handler, used for responding to SSL errors encountered during network requests. More...
 

Macros

#define QgsSetRequestInitiatorClass(request, _class)   request.setAttribute( static_cast< QNetworkRequest::Attribute >( QgsNetworkRequestParameters::AttributeInitiatorClass ), _class ); request.setAttribute( static_cast< QNetworkRequest::Attribute >( QgsNetworkRequestParameters::AttributeInitiatorRequestId ), QString( __FILE__ ).mid( sFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + ")" );
 
#define QgsSetRequestInitiatorId(request, str)   request.setAttribute( static_cast< QNetworkRequest::Attribute >( QgsNetworkRequestParameters::AttributeInitiatorRequestId ), QString( __FILE__ ).mid( sFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + "): " + str );
 

Variables

constexpr int sFilePrefixLength = CMAKE_SOURCE_DIR[sizeof( CMAKE_SOURCE_DIR ) - 1] == '/' ? sizeof( CMAKE_SOURCE_DIR ) + 1 : sizeof( CMAKE_SOURCE_DIR )
 

Macro Definition Documentation

◆ QgsSetRequestInitiatorClass

#define QgsSetRequestInitiatorClass (   request,
  _class 
)    request.setAttribute( static_cast< QNetworkRequest::Attribute >( QgsNetworkRequestParameters::AttributeInitiatorClass ), _class ); request.setAttribute( static_cast< QNetworkRequest::Attribute >( QgsNetworkRequestParameters::AttributeInitiatorRequestId ), QString( __FILE__ ).mid( sFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + ")" );

Definition at line 41 of file qgsnetworkaccessmanager.h.

◆ QgsSetRequestInitiatorId

#define QgsSetRequestInitiatorId (   request,
  str 
)    request.setAttribute( static_cast< QNetworkRequest::Attribute >( QgsNetworkRequestParameters::AttributeInitiatorRequestId ), QString( __FILE__ ).mid( sFilePrefixLength ) + ':' + QString::number( __LINE__ ) + " (" + __FUNCTION__ + "): " + str );

Definition at line 42 of file qgsnetworkaccessmanager.h.

Variable Documentation

◆ sFilePrefixLength

constexpr int sFilePrefixLength = CMAKE_SOURCE_DIR[sizeof( CMAKE_SOURCE_DIR ) - 1] == '/' ? sizeof( CMAKE_SOURCE_DIR ) + 1 : sizeof( CMAKE_SOURCE_DIR )

Definition at line 39 of file qgsnetworkaccessmanager.h.