CFx SDK Documentation
2022 SP0
|
#include <FxNANetworkAccessManager.h>
Public Types | |
enum | Operation { HeadOperation = 1 , GetOperation , PutOperation , PostOperation , DeleteOperation , CustomOperation , UnknownOperation = 0 } |
Additional Inherited Members | |
Protected Member Functions inherited from CFxUIObject | |
CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
CFxUIObjectImpl * | m_pImpl |
CFxUIObjectData * | m_pData |
Class CFxNANetworkAccessManager class allows the application to send network requests and receive replies.
Definition at line 38 of file FxNANetworkAccessManager.h.
This enum type indicates the operation this reply is processing.
Enumerator | |
---|---|
HeadOperation | retrieve headers operation (created with head()) |
GetOperation | retrieve headers and download contents (created with get()) |
PutOperation | upload contents operation (created with put()) |
PostOperation | send the contents of an HTML form for processing via HTTP POST (created with post()) |
DeleteOperation | delete contents operation (created with deleteResource()) |
CustomOperation | custom operation (created with sendCustomRequest()) |
UnknownOperation |
Definition at line 44 of file FxNANetworkAccessManager.h.
CFxNANetworkAccessManager::CFxNANetworkAccessManager | ( | ) |
Constructor
CFxNANetworkAccessManager::~CFxNANetworkAccessManager | ( | ) |
Destructor
CFxNANetworkReply* CFxNANetworkAccessManager::deleteResource | ( | const CFxNANetworkRequest & | request | ) |
Sends a request to delete the resource identified by the URL of request.
request | Input |
CFxNANetworkReply* CFxNANetworkAccessManager::get | ( | const CFxNANetworkRequest & | request | ) |
Posts a request to obtain the contents of the target request and returns a new CFxNetworkReply object opened for reading which emits the readyRead() signal whenever new data arrives.
request | Input |
CFxNANetworkReply* CFxNANetworkAccessManager::post | ( | const CFxNANetworkRequest & | request, |
CFxNAIODevice * | data | ||
) |
Sends an HTTP POST request to the destination specified by request and returns a new CFxNetworkReply object opened for reading that will contain the reply sent by the server.
The contents of the data device will be uploaded to the server.
request | Input |
data | must be open for reading and must remain valid until the finished() signal is emitted for this reply. |
CFxNANetworkReply* CFxNANetworkAccessManager::post | ( | const CFxNANetworkRequest & | request, |
const CFxNAByteArray & | data | ||
) |
This is an overloaded function.
request | Input |
data | Sends the contents of the data byte array to the destination specified by request. |
CFxNANetworkReply* CFxNANetworkAccessManager::put | ( | const CFxNANetworkRequest & | request, |
CFxNAIODevice * | data | ||
) |
Uploads the contents of data to the destination request and returns a new CFxNetworkReply object that will be open for reply.
request | Input |
data | must be opened for reading when this function is called and must remain valid until the finished() signal is emitted for this reply. |
CFxNANetworkReply* CFxNANetworkAccessManager::put | ( | const CFxNANetworkRequest & | request, |
const CFxNAByteArray & | data | ||
) |
This is an overloaded function.
request | Input |
data | Sends the contents of the data byte array to the destination specified by request. |