API reference - Class QNetworkReply

Notation used in Ruby API documentation

Description: Binding of QNetworkReply

Class hierarchy: QNetworkReply » QIODevice » QObject

Sub-classes: NetworkError

Public constructors

new QNetworkReply ptrnewCreates a new object of this class

Public methods

void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidabortMethod void QNetworkReply::abort()
[event]voidaboutToCloseSignal declaration for QNetworkReply::aboutToClose()
[const]QVariantattribute(const QNetworkRequest_Attribute code)Method QVariant QNetworkReply::attribute(QNetworkRequest::Attribute code)
[event]voidbytesWritten(long long bytes)Signal declaration for QNetworkReply::bytesWritten(qint64 bytes)
voidcloseMethod void QNetworkReply::close()
[event]voiddestroyed(QObject ptr arg1)Signal declaration for QNetworkReply::destroyed(QObject *)
[event]voiddownloadProgress(long long bytesReceived,
long long bytesTotal)
Signal declaration for QNetworkReply::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
[const]QNetworkReply_NetworkErrorerrorMethod QNetworkReply::NetworkError QNetworkReply::error()
[event]voiderror(const QNetworkReply_NetworkError arg1)Signal declaration for QNetworkReply::error(QNetworkReply::NetworkError)
[event]voidfinishedSignal declaration for QNetworkReply::finished()
[const]boolhasRawHeader(string headerName)Method bool QNetworkReply::hasRawHeader(const QByteArray &headerName)
[const]QVariantheader(const QNetworkRequest_KnownHeaders header)Method QVariant QNetworkReply::header(QNetworkRequest::KnownHeaders header)
voidignoreSslErrors(QSslError[] errors)Method void QNetworkReply::ignoreSslErrors(const QList<QSslError> &errors)
voidignoreSslErrorsMethod void QNetworkReply::ignoreSslErrors()
[const]boolisFinished?Method bool QNetworkReply::isFinished()
[const]boolisRunning?Method bool QNetworkReply::isRunning()
[const]boolisSequential?Method bool QNetworkReply::isSequential()
[const]QNetworkAccessManager ptrmanagerMethod QNetworkAccessManager *QNetworkReply::manager()
[event]voidmetaDataChangedSignal declaration for QNetworkReply::metaDataChanged()
[const]QNetworkAccessManager_OperationoperationMethod QNetworkAccessManager::Operation QNetworkReply::operation()
[const]stringrawHeader(string headerName)Method QByteArray QNetworkReply::rawHeader(const QByteArray &headerName)
[const]string[]rawHeaderListMethod QList<QByteArray> QNetworkReply::rawHeaderList()
[const]long longreadBufferSizeMethod qint64 QNetworkReply::readBufferSize()
voidreadBufferSize=(long long size)Method void QNetworkReply::setReadBufferSize(qint64 size)
[event]voidreadChannelFinishedSignal declaration for QNetworkReply::readChannelFinished()
[event]voidreadyReadSignal declaration for QNetworkReply::readyRead()
[const]QNetworkRequestrequestMethod QNetworkRequest QNetworkReply::request()
voidsetReadBufferSize(long long size)Method void QNetworkReply::setReadBufferSize(qint64 size)
voidsetSslConfiguration(const QSslConfiguration configuration)Method void QNetworkReply::setSslConfiguration(const QSslConfiguration &configuration)
[const]QSslConfigurationsslConfigurationMethod QSslConfiguration QNetworkReply::sslConfiguration()
voidsslConfiguration=(const QSslConfiguration configuration)Method void QNetworkReply::setSslConfiguration(const QSslConfiguration &configuration)
[event]voidsslErrors(QSslError[] errors)Signal declaration for QNetworkReply::sslErrors(const QList<QSslError> &errors)
[event]voiduploadProgress(long long bytesSent,
long long bytesTotal)
Signal declaration for QNetworkReply::uploadProgress(qint64 bytesSent, qint64 bytesTotal)
[const]QUrlurlMethod QUrl QNetworkReply::url()

Public static methods and constants

[static,const]new QNetworkReply_NetworkError ptrAuthenticationRequiredErrorEnum constant QNetworkReply::AuthenticationRequiredError
[static,const]new QNetworkReply_NetworkError ptrConnectionRefusedErrorEnum constant QNetworkReply::ConnectionRefusedError
[static,const]new QNetworkReply_NetworkError ptrContentAccessDeniedEnum constant QNetworkReply::ContentAccessDenied
[static,const]new QNetworkReply_NetworkError ptrContentNotFoundErrorEnum constant QNetworkReply::ContentNotFoundError
[static,const]new QNetworkReply_NetworkError ptrContentOperationNotPermittedErrorEnum constant QNetworkReply::ContentOperationNotPermittedError
[static,const]new QNetworkReply_NetworkError ptrContentReSendErrorEnum constant QNetworkReply::ContentReSendError
[static,const]new QNetworkReply_NetworkError ptrHostNotFoundErrorEnum constant QNetworkReply::HostNotFoundError
[static,const]new QNetworkReply_NetworkError ptrNoErrorEnum constant QNetworkReply::NoError
[static,const]new QNetworkReply_NetworkError ptrOperationCanceledErrorEnum constant QNetworkReply::OperationCanceledError
[static,const]new QNetworkReply_NetworkError ptrProtocolFailureEnum constant QNetworkReply::ProtocolFailure
[static,const]new QNetworkReply_NetworkError ptrProtocolInvalidOperationErrorEnum constant QNetworkReply::ProtocolInvalidOperationError
[static,const]new QNetworkReply_NetworkError ptrProtocolUnknownErrorEnum constant QNetworkReply::ProtocolUnknownError
[static,const]new QNetworkReply_NetworkError ptrProxyAuthenticationRequiredErrorEnum constant QNetworkReply::ProxyAuthenticationRequiredError
[static,const]new QNetworkReply_NetworkError ptrProxyConnectionClosedErrorEnum constant QNetworkReply::ProxyConnectionClosedError
[static,const]new QNetworkReply_NetworkError ptrProxyConnectionRefusedErrorEnum constant QNetworkReply::ProxyConnectionRefusedError
[static,const]new QNetworkReply_NetworkError ptrProxyNotFoundErrorEnum constant QNetworkReply::ProxyNotFoundError
[static,const]new QNetworkReply_NetworkError ptrProxyTimeoutErrorEnum constant QNetworkReply::ProxyTimeoutError
[static,const]new QNetworkReply_NetworkError ptrRemoteHostClosedErrorEnum constant QNetworkReply::RemoteHostClosedError
[static,const]new QNetworkReply_NetworkError ptrSslHandshakeFailedErrorEnum constant QNetworkReply::SslHandshakeFailedError
[static,const]new QNetworkReply_NetworkError ptrTimeoutErrorEnum constant QNetworkReply::TimeoutError
[static,const]new QNetworkReply_NetworkError ptrUnknownContentErrorEnum constant QNetworkReply::UnknownContentError
[static,const]new QNetworkReply_NetworkError ptrUnknownNetworkErrorEnum constant QNetworkReply::UnknownNetworkError
[static,const]new QNetworkReply_NetworkError ptrUnknownProxyErrorEnum constant QNetworkReply::UnknownProxyError
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QNetworkReply::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QNetworkReply::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QNetworkReply::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QNetworkReply::trUtf8(const char *s, const char *c, int n)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

[static,const] new QNetworkReply_NetworkError ptr AuthenticationRequiredError

Description: Enum constant QNetworkReply::AuthenticationRequiredError

[static,const] new QNetworkReply_NetworkError ptr ConnectionRefusedError

Description: Enum constant QNetworkReply::ConnectionRefusedError

[static,const] new QNetworkReply_NetworkError ptr ContentAccessDenied

Description: Enum constant QNetworkReply::ContentAccessDenied

[static,const] new QNetworkReply_NetworkError ptr ContentNotFoundError

Description: Enum constant QNetworkReply::ContentNotFoundError

[static,const] new QNetworkReply_NetworkError ptr ContentOperationNotPermittedError

Description: Enum constant QNetworkReply::ContentOperationNotPermittedError

[static,const] new QNetworkReply_NetworkError ptr ContentReSendError

Description: Enum constant QNetworkReply::ContentReSendError

[static,const] new QNetworkReply_NetworkError ptr HostNotFoundError

Description: Enum constant QNetworkReply::HostNotFoundError

[static,const] new QNetworkReply_NetworkError ptr NoError

Description: Enum constant QNetworkReply::NoError

[static,const] new QNetworkReply_NetworkError ptr OperationCanceledError

Description: Enum constant QNetworkReply::OperationCanceledError

[static,const] new QNetworkReply_NetworkError ptr ProtocolFailure

Description: Enum constant QNetworkReply::ProtocolFailure

[static,const] new QNetworkReply_NetworkError ptr ProtocolInvalidOperationError

Description: Enum constant QNetworkReply::ProtocolInvalidOperationError

[static,const] new QNetworkReply_NetworkError ptr ProtocolUnknownError

Description: Enum constant QNetworkReply::ProtocolUnknownError

[static,const] new QNetworkReply_NetworkError ptr ProxyAuthenticationRequiredError

Description: Enum constant QNetworkReply::ProxyAuthenticationRequiredError

[static,const] new QNetworkReply_NetworkError ptr ProxyConnectionClosedError

Description: Enum constant QNetworkReply::ProxyConnectionClosedError

[static,const] new QNetworkReply_NetworkError ptr ProxyConnectionRefusedError

Description: Enum constant QNetworkReply::ProxyConnectionRefusedError

[static,const] new QNetworkReply_NetworkError ptr ProxyNotFoundError

Description: Enum constant QNetworkReply::ProxyNotFoundError

[static,const] new QNetworkReply_NetworkError ptr ProxyTimeoutError

Description: Enum constant QNetworkReply::ProxyTimeoutError

[static,const] new QNetworkReply_NetworkError ptr RemoteHostClosedError

Description: Enum constant QNetworkReply::RemoteHostClosedError

[static,const] new QNetworkReply_NetworkError ptr SslHandshakeFailedError

Description: Enum constant QNetworkReply::SslHandshakeFailedError

[static,const] new QNetworkReply_NetworkError ptr TimeoutError

Description: Enum constant QNetworkReply::TimeoutError

[static,const] new QNetworkReply_NetworkError ptr UnknownContentError

Description: Enum constant QNetworkReply::UnknownContentError

[static,const] new QNetworkReply_NetworkError ptr UnknownNetworkError

Description: Enum constant QNetworkReply::UnknownNetworkError

[static,const] new QNetworkReply_NetworkError ptr UnknownProxyError

Description: Enum constant QNetworkReply::UnknownProxyError

void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

[const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

void abort

Description: Method void QNetworkReply::abort()

[event] void aboutToClose

Description: Signal declaration for QNetworkReply::aboutToClose()

You can bind a procedure to this signal.

[const] QVariant attribute(const QNetworkRequest_Attribute code)

Description: Method QVariant QNetworkReply::attribute(QNetworkRequest::Attribute code)

[event] void bytesWritten(long long bytes)

Description: Signal declaration for QNetworkReply::bytesWritten(qint64 bytes)

You can bind a procedure to this signal.

void close

Description: Method void QNetworkReply::close()

This is a reimplementation of QIODevice::close

void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

[event] void destroyed(QObject ptr arg1)

Description: Signal declaration for QNetworkReply::destroyed(QObject *)

You can bind a procedure to this signal.

[event] void downloadProgress(long long bytesReceived,long long bytesTotal)

Description: Signal declaration for QNetworkReply::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)

You can bind a procedure to this signal.

[const] QNetworkReply_NetworkError error

Description: Method QNetworkReply::NetworkError QNetworkReply::error()

[event] void error(const QNetworkReply_NetworkError arg1)

Description: Signal declaration for QNetworkReply::error(QNetworkReply::NetworkError)

You can bind a procedure to this signal.

[event] void finished

Description: Signal declaration for QNetworkReply::finished()

You can bind a procedure to this signal.

[const] bool hasRawHeader(string headerName)

Description: Method bool QNetworkReply::hasRawHeader(const QByteArray &headerName)

[const] QVariant header(const QNetworkRequest_KnownHeaders header)

Description: Method QVariant QNetworkReply::header(QNetworkRequest::KnownHeaders header)

void ignoreSslErrors(QSslError[] errors)

Description: Method void QNetworkReply::ignoreSslErrors(const QList<QSslError> &errors)

void ignoreSslErrors

Description: Method void QNetworkReply::ignoreSslErrors()

[const] bool isFinished?

Description: Method bool QNetworkReply::isFinished()

[const] bool isRunning?

Description: Method bool QNetworkReply::isRunning()

[const] bool isSequential?

Description: Method bool QNetworkReply::isSequential()

This is a reimplementation of QIODevice::isSequential

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

[const] QNetworkAccessManager ptr manager

Description: Method QNetworkAccessManager *QNetworkReply::manager()

[event] void metaDataChanged

Description: Signal declaration for QNetworkReply::metaDataChanged()

You can bind a procedure to this signal.

[static] new QNetworkReply ptr new

Description: Creates a new object of this class

Python specific notes:

This method is the default initializer of the object

[const] QNetworkAccessManager_Operation operation

Description: Method QNetworkAccessManager::Operation QNetworkReply::operation()

[const] string rawHeader(string headerName)

Description: Method QByteArray QNetworkReply::rawHeader(const QByteArray &headerName)

[const] string[] rawHeaderList

Description: Method QList<QByteArray> QNetworkReply::rawHeaderList()

[const] long long readBufferSize

Description: Method qint64 QNetworkReply::readBufferSize()

Python specific notes:

The object exposes a readable attribute 'readBufferSize'. This is the getter.

void readBufferSize=(long long size)

Description: Method void QNetworkReply::setReadBufferSize(qint64 size)

Python specific notes:

The object exposes a writable attribute 'readBufferSize'. This is the setter.

[event] void readChannelFinished

Description: Signal declaration for QNetworkReply::readChannelFinished()

You can bind a procedure to this signal.

[event] void readyRead

Description: Signal declaration for QNetworkReply::readyRead()

You can bind a procedure to this signal.

[const] QNetworkRequest request

Description: Method QNetworkRequest QNetworkReply::request()

void setReadBufferSize(long long size)

Description: Method void QNetworkReply::setReadBufferSize(qint64 size)

Python specific notes:

The object exposes a writable attribute 'readBufferSize'. This is the setter.

void setSslConfiguration(const QSslConfiguration configuration)

Description: Method void QNetworkReply::setSslConfiguration(const QSslConfiguration &configuration)

Python specific notes:

The object exposes a writable attribute 'sslConfiguration'. This is the setter.

[const] QSslConfiguration sslConfiguration

Description: Method QSslConfiguration QNetworkReply::sslConfiguration()

Python specific notes:

The object exposes a readable attribute 'sslConfiguration'. This is the getter.

void sslConfiguration=(const QSslConfiguration configuration)

Description: Method void QNetworkReply::setSslConfiguration(const QSslConfiguration &configuration)

Python specific notes:

The object exposes a writable attribute 'sslConfiguration'. This is the setter.

[event] void sslErrors(QSslError[] errors)

Description: Signal declaration for QNetworkReply::sslErrors(const QList<QSslError> &errors)

You can bind a procedure to this signal.

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[static] string tr(string s,string c = 0)

Description: Static method QString QNetworkReply::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c,int n)

Description: Static method QString QNetworkReply::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c = 0)

Description: Static method QString QNetworkReply::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c,int n)

Description: Static method QString QNetworkReply::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[event] void uploadProgress(long long bytesSent,long long bytesTotal)

Description: Signal declaration for QNetworkReply::uploadProgress(qint64 bytesSent, qint64 bytesTotal)

You can bind a procedure to this signal.

[const] QUrl url

Description: Method QUrl QNetworkReply::url()