Allows the application to request network data using the Qt Framework.
More...
|
|
QNetworkAccessManager * | m_manager = nullptr |
| | The underlying Qt network access manager.
|
Allows the application to request network data using the Qt Framework.
Definition at line 81 of file QTNetworkRequest.h.
◆ ConvertToRequest()
| QNetworkRequest QtNetworkAccessManager::ConvertToRequest |
( |
const WebTarget & | target | ) |
|
|
static |
Converts a WebTarget into a QNetworkRequest.
- Parameters
-
| [in] | target | The web target containing URL and header information. |
- Returns
- A QNetworkRequest configured from the given target.
◆ downloadFromURL()
Creates a network request to download content from the specified URL.
- Parameters
-
| [in] | url | The web target to download from. |
- Returns
- A new NetworkRequest for the download operation.
Implements NetworkAccessManager.
◆ networkTimeFromURL()
Creates an NTP time request to retrieve network time from the specified server.
- Parameters
-
| [in] | url | The NTP server hostname. |
| [in] | port | The NTP server port. |
- Returns
- A new TimeRequest for the NTP time query.
Implements NetworkAccessManager.
◆ uploadToURL() [1/2]
Creates a network request to upload raw byte data to the specified URL.
- Parameters
-
| [in] | request | The web target to upload to. |
| [in] | data | The raw byte data to upload. |
- Returns
- A new NetworkRequest for the upload operation.
Implements NetworkAccessManager.
◆ uploadToURL() [2/2]
Creates a network request to upload a file to the specified URL.
- Parameters
-
| [in] | request | The web target to upload to. |
| [in] | data | The file to upload. |
- Returns
- A new NetworkRequest for the upload operation.
Implements NetworkAccessManager.
The documentation for this class was generated from the following file: