OpendTect  7.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Network::HttpRequestManager Class Reference
Inheritance diagram for Network::HttpRequestManager:
[legend]

Public Member Functions

 HttpRequestManager ()
 
 ~HttpRequestManager ()
 
RefMan< HttpRequestProcessget (const char *url)
 
RefMan< HttpRequestProcesshead (const char *url)
 
RefMan< HttpRequestProcessrequest (const HttpRequest *)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Static Public Member Functions

static HttpRequestManagerinstance ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Private Member Functions

void doRequestCB (CallBacker *)
 
void shutDownThreading ()
 
void threadFuncCB (CallBacker *)
 

Static Private Member Functions

static void CloseInstance ()
 

Private Attributes

RefObjectSet< HttpRequestProcessactiveevents_
 
Threads::SpinLock activeeventslock_
 
QEventLoop * eventloop_ = nullptr
 
Threads::ConditionVareventlooplock_
 
QNetworkAccessManager * qnam_ = nullptr
 
Threads::Threadthread_ = nullptr
 

Detailed Description

Main entrypoint of http(s) connections. A new request is created by calling either head(), get() or request().

The call will return a HttpRequestProcess, which can be queried about the results.

<>

Constructor & Destructor Documentation

◆ HttpRequestManager()

Network::HttpRequestManager::HttpRequestManager ( )

◆ ~HttpRequestManager()

Network::HttpRequestManager::~HttpRequestManager ( )

Member Function Documentation

◆ CloseInstance()

static void Network::HttpRequestManager::CloseInstance ( )
staticprivate

◆ doRequestCB()

void Network::HttpRequestManager::doRequestCB ( CallBacker )
private

◆ get()

RefMan<HttpRequestProcess> Network::HttpRequestManager::get ( const char *  url)

◆ head()

RefMan<HttpRequestProcess> Network::HttpRequestManager::head ( const char *  url)

◆ instance()

static HttpRequestManager& Network::HttpRequestManager::instance ( )
static

◆ request()

RefMan<HttpRequestProcess> Network::HttpRequestManager::request ( const HttpRequest )

◆ shutDownThreading()

void Network::HttpRequestManager::shutDownThreading ( )
private

◆ threadFuncCB()

void Network::HttpRequestManager::threadFuncCB ( CallBacker )
private

Member Data Documentation

◆ activeevents_

RefObjectSet<HttpRequestProcess> Network::HttpRequestManager::activeevents_
private

◆ activeeventslock_

Threads::SpinLock Network::HttpRequestManager::activeeventslock_
private

◆ eventloop_

QEventLoop* Network::HttpRequestManager::eventloop_ = nullptr
private

◆ eventlooplock_

Threads::ConditionVar* Network::HttpRequestManager::eventlooplock_
private

◆ qnam_

QNetworkAccessManager* Network::HttpRequestManager::qnam_ = nullptr
private

◆ thread_

Threads::Thread* Network::HttpRequestManager::thread_ = nullptr
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024