CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
19 #include "../FxCommonFramework.h"
20 #include "../UI/FxUIObject.h"
21 #include "../UI/FxUISignal.h"
24 #include <QtCore/QByteArray>
25 #include <QtCore/QList>
26 #include <QtCore/QPair>
27 #include <QtCore/QSharedPointer>
28 #include <QtCore/QString>
29 #include <QtCore/QVariant>
34 template<
typename T >
36 template<
typename T1,
typename T2 >
55 ConnectionRefusedError = 1,
66 UnknownNetworkError = 99,
69 ProxyConnectionRefusedError = 101,
74 UnknownProxyError = 199,
77 ContentAccessDenied = 201,
84 UnknownContentError = 299,
87 ProtocolUnknownError = 301,
89 ProtocolFailure = 399,
92 InternalServerError = 401,
95 UnknownServerError = 499
@ OperationNotImplementedError
the server does not support the functionality required to fulfill the request.
CFxNAVariant header(CFxNANetworkRequest::KnownHeaders header) const
@ BackgroundRequestNotAllowedError
the background request is not currently allowed due to platform policy.
@ HostNotFoundError
the remote host name was not found (invalid hostname)
CFxNANetworkReply(std::nullptr_t)=delete
@ SslHandshakeFailedError
the SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() sign...
const CFxNANetworkRequest & request() const
bool hasRawHeader(const CFxNAByteArray &headerName) const
@ ProxyConnectionClosedError
the proxy server closed the connection prematurely, before the entire reply was received and processe...
CFxUISignal< void(NetworkError)> & error()
NetworkError error() const
CFxUISignal< void(long long bytesReceived, long long bytesTotal)> & downloadProgress()
@ ProtocolInvalidOperationError
the requested operation is invalid for this protocol
@ RemoteHostClosedError
the remote server closed the connection prematurely, before the entire reply was received and process...
@ ServiceUnavailableError
the server is unable to handle the request at this time.
@ AuthenticationRequiredError
the remote server requires authentication to serve the content but the credentials provided were not ...
@ ContentGoneError
the requested resource is no longer available at the server.
QByteArray CFxNAByteArray
@ ContentReSendError
the request needed to be sent again, but this failed for example because the upload data could not be...
CFxNAVariant attribute(CFxNANetworkRequest::Attribute code) const
void setRequest(const CFxNANetworkRequest &request)
CFxUISignal< void(void)> & finished()
CFxNAList< CFxNAByteArray > rawHeaderList() const
CFxNANetworkReply()=delete
@ ProxyNotFoundError
the proxy host name was not found (invalid proxy hostname)
@ TimeoutError
the connection to the remote server timed out
const CFxNAList< RawHeaderPair > & rawHeaderPairs() const
@ InsecureRedirectError
while following redirects, the network access API detected a redirect from a encrypted protocol (http...
CFxNAString errorString() const
CFxUISignal< void(long long bytesSent, long long bytesTotal)> & uploadProgress()
@ TooManyRedirectsError
while following redirects, the maximum limit was reached.
CFxUISignal< void(void)> & encrypted()
@ ContentNotFoundError
the remote content was not found at the server (similar to HTTP error 404)
QPair< T1, T2 > CFxNAPair
@ ContentConflictError
the request could not be completed due to a conflict with the current state of the resource.
@ OperationCanceledError
the operation was canceled via calls to abort() or close() before it was finished.
long long bytesAvailable() const
@ ContentOperationNotPermittedError
the operation requested on the remote content is not permitted
@ ProxyAuthenticationRequiredError
the proxy requires authentication in order to honour the request but did not accept any credentials o...
@ ProxyTimeoutError
the connection to the proxy timed out or the proxy did not reply in time to the request sent
CFxNANetworkReply(FxNativeHandle nativeReply)
CFxNAByteArray rawHeader(const CFxNAByteArray &headerName) const
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
@ NetworkSessionFailedError
the connection was broken due to disconnection from the network or failure to start the network.
CFxNAPair< CFxNAByteArray, CFxNAByteArray > RawHeaderPair
@ TemporaryNetworkFailureError
the connection was broken due to disconnection from the network, however the system has initiated roa...