QGIS API Documentation 3.41.0-Master (25ec5511245)
Loading...
Searching...
No Matches
Macros | Variables
qgssetrequestinitiator_p.h File Reference
#include "qgsnetworkaccessmanager.h"
Include dependency graph for qgssetrequestinitiator_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

◆ QgsSetCPLHTTPFetchOverriderInitiatorClass

#define QgsSetCPLHTTPFetchOverriderInitiatorClass (   overrider,
  _class 
)    QgsSetRequestInitiatorClass((overrider), _class)

Definition at line 28 of file qgssetrequestinitiator_p.h.

◆ QgsSetRequestInitiatorClass

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

Definition at line 25 of file qgssetrequestinitiator_p.h.

◆ QgsSetRequestInitiatorId

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

Definition at line 26 of file qgssetrequestinitiator_p.h.

Variable Documentation

◆ sFilePrefixLength

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

Definition at line 23 of file qgssetrequestinitiator_p.h.