CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | List of all members
CFxNANetworkAccessManager Class Reference

#include <FxNANetworkAccessManager.h>

Inheritance diagram for CFxNANetworkAccessManager:
CFxUIObject

Public Types

enum  Operation {
  HeadOperation = 1 , GetOperation , PutOperation , PostOperation ,
  DeleteOperation , CustomOperation , UnknownOperation = 0
}
 

Public Member Functions

 CFxNANetworkAccessManager ()
 
 ~CFxNANetworkAccessManager ()
 
CFxNANetworkReplyget (const CFxNANetworkRequest &request)
 
CFxNANetworkReplypost (const CFxNANetworkRequest &request, CFxNAIODevice *data)
 
CFxNANetworkReplypost (const CFxNANetworkRequest &request, const CFxNAByteArray &data)
 
CFxNANetworkReplyput (const CFxNANetworkRequest &request, CFxNAIODevice *data)
 
CFxNANetworkReplyput (const CFxNANetworkRequest &request, const CFxNAByteArray &data)
 
CFxNANetworkReplydeleteResource (const CFxNANetworkRequest &request)
 
- Public Member Functions inherited from CFxUIObject
 CFxUIObject ()
 
virtual ~CFxUIObject ()
 
FxNativeHandle getHandle () const
 
void setHandle (FxNativeHandle handle)
 
void setParent (CFxUIObject *parent)
 
CFxUIObjectparent ()
 
const CFxUIObjectparent () const
 
void setObjectName (const CFxUIString &objectName)
 
CFxUIString objectName () const
 
bool setProperty (const char *name, const CFxUIVariant &value)
 
CFxUIVariant property (const char *name)
 
CFxUIList< CFxUIObject * > children () const
 
template<typename T >
CFxUIList< T > findChildren (const CFxUIString &name=CFxUIString())
 
void blockSignals (bool block)
 
bool signalsBlocked () const
 

Additional Inherited Members

- Protected Member Functions inherited from CFxUIObject
CFxUIObjectsender ()
 
- Protected Attributes inherited from CFxUIObject
CFxUIObjectImpl * m_pImpl
 
CFxUIObjectData * m_pData
 

Detailed Description

Class CFxNANetworkAccessManager class allows the application to send network requests and receive replies.

Definition at line 38 of file FxNANetworkAccessManager.h.

Member Enumeration Documentation

◆ Operation

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.

Constructor & Destructor Documentation

◆ CFxNANetworkAccessManager()

CFxNANetworkAccessManager::CFxNANetworkAccessManager ( )

Constructor

◆ ~CFxNANetworkAccessManager()

CFxNANetworkAccessManager::~CFxNANetworkAccessManager ( )

Destructor

Member Function Documentation

◆ deleteResource()

CFxNANetworkReply* CFxNANetworkAccessManager::deleteResource ( const CFxNANetworkRequest request)

Sends a request to delete the resource identified by the URL of request.

Parameters
requestInput
Returns
CFxNANetworkReply

◆ get()

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.

Parameters
requestInput
Returns
CFxNANetworkReply

◆ post() [1/2]

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.

Parameters
requestInput
datamust be open for reading and must remain valid until the finished() signal is emitted for this reply.
Returns
CFxNANetworkReply

◆ post() [2/2]

CFxNANetworkReply* CFxNANetworkAccessManager::post ( const CFxNANetworkRequest request,
const CFxNAByteArray data 
)

This is an overloaded function.

Parameters
requestInput
dataSends the contents of the data byte array to the destination specified by request.
Returns
CFxNANetworkReply

◆ put() [1/2]

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.

Parameters
requestInput
datamust be opened for reading when this function is called and must remain valid until the finished() signal is emitted for this reply.
Returns
CFxNANetworkReply

◆ put() [2/2]

CFxNANetworkReply* CFxNANetworkAccessManager::put ( const CFxNANetworkRequest request,
const CFxNAByteArray data 
)

This is an overloaded function.

Parameters
requestInput
dataSends the contents of the data byte array to the destination specified by request.
Returns
CFxNANetworkReply

The documentation for this class was generated from the following file: