OpendTect
7.0
|
Public Member Functions | |
od_int64 | downloadBytesAvailable () const |
uiString | errMsg () const |
od_int64 | getBytesUploaded () const |
od_int64 | getContentLengthHeader () const |
od_int64 | getTotalBytesToUpload () const |
bool | isError () const |
bool | isFinished () const |
bool | isRunning () const |
od_int64 | read (char *, od_int64 bufsize) |
Returns nr bytes read. More... | |
BufferString | readAll () |
bool | waitForDownloadData (int timeout_ms=-1) |
void | waitForFinish (int timeout_in_ms=-1) |
Public Member Functions inherited from SharedObject | |
SharedObject (const char *nm=nullptr) | |
SharedObject (const SharedObject &) | |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
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 CallBacker * | trueCaller () |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
const name_type & | name () const override |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Public Member Functions inherited from RefCount::Referenced | |
void | addObserver (WeakPtrBase *obs) |
Not for normal use. May become private. More... | |
int | nrRefs () const |
Only for expert use. More... | |
void | ref () const |
bool | refIfReffed () const |
Don't use in production, for debugging. More... | |
void | removeObserver (WeakPtrBase *obs) |
Not for normal use. May become private. More... | |
bool | tryRef () const |
Not for normal use. May become private. More... | |
void | unRef () const |
void | unRefNoDelete () const |
Public Attributes | |
Notifier< HttpRequestProcess > | downloadDataAvailable |
Notifier< HttpRequestProcess > | error |
Notifier< HttpRequestProcess > | finished |
Notifier< HttpRequestProcess > | uploadProgress |
Private Types | |
enum | Status { NotStarted , Running , Error , Finished } |
Private Member Functions | |
HttpRequestProcess (const HttpRequest *) | |
~HttpRequestProcess () | |
void | reportDownloadProgress (od_int64 nrdone, od_int64 totalnr) |
void | reportError () |
void | reportFinished () |
void | reportMetaDataChanged () |
void | reportReadyRead () |
void | reportSSLErrors (const QList< QSslError > &) |
void | reportUploadProgress (od_int64 bytes, od_int64 totalbytes) |
void | setQNetworkReply (QNetworkReply *) |
bool | waitForRequestStart () |
Private Attributes | |
Threads::Atomic< od_int64 > | bytesdownloaded_ |
Threads::Atomic< od_int64 > | bytesuploaded_ |
Threads::Atomic< od_int64 > | contentlengthheader_ |
uiString | errmsg_ |
QNetworkReply * | qnetworkreply_ = nullptr |
QNetworkReplyConn * | qnetworkreplyconn_ = nullptr |
QByteArray * | receiveddata_ = nullptr |
Threads::ConditionVar | receiveddatalock_ |
ConstRefMan< HttpRequest > | request_ |
Status | status_ = NotStarted |
Threads::ConditionVar | statuslock_ |
Threads::Atomic< od_int64 > | totalbytestodownload_ |
Threads::Atomic< od_int64 > | totalbytestoupload_ |
Friends | |
class | ::QNetworkReplyConn |
class | HttpRequestManager |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Static Public Member Functions inherited from SharedObject | |
static Notifier< SharedObject > & | instanceCreated () |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Static Public Member Functions inherited from RefCount::Referenced | |
static bool | isSane (const Referenced *) |
Protected Member Functions inherited from SharedObject | |
virtual | ~SharedObject () |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Member Functions inherited from RefCount::Referenced | |
Referenced () | |
Referenced (const Referenced &) | |
virtual | ~Referenced () |
Referenced & | operator= (const Referenced &) |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
The upload or download process. Can be queried for progress, data and errors
<>
|
private |
|
private |
|
private |
od_int64 Network::HttpRequestProcess::downloadBytesAvailable | ( | ) | const |
uiString Network::HttpRequestProcess::errMsg | ( | ) | const |
od_int64 Network::HttpRequestProcess::getBytesUploaded | ( | ) | const |
od_int64 Network::HttpRequestProcess::getContentLengthHeader | ( | ) | const |
od_int64 Network::HttpRequestProcess::getTotalBytesToUpload | ( | ) | const |
bool Network::HttpRequestProcess::isError | ( | ) | const |
bool Network::HttpRequestProcess::isFinished | ( | ) | const |
bool Network::HttpRequestProcess::isRunning | ( | ) | const |
od_int64 Network::HttpRequestProcess::read | ( | char * | , |
od_int64 | bufsize | ||
) |
Returns nr bytes read.
BufferString Network::HttpRequestProcess::readAll | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Becomes mine. Also signals start of the request.
bool Network::HttpRequestProcess::waitForDownloadData | ( | int | timeout_ms = -1 | ) |
void Network::HttpRequestProcess::waitForFinish | ( | int | timeout_in_ms = -1 | ) |
|
private |
Wait for the request to start in the networking thread.
|
friend |
|
friend |
|
private |
|
private |
|
private |
Notifier<HttpRequestProcess> Network::HttpRequestProcess::downloadDataAvailable |
|
private |
Notifier<HttpRequestProcess> Network::HttpRequestProcess::error |
Notifier<HttpRequestProcess> Network::HttpRequestProcess::finished |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
Notifier<HttpRequestProcess> Network::HttpRequestProcess::uploadProgress |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024