NDEVR
API Documentation
NetworkAccessManagerabstract

Provides an interface for accessing resources on the internet. More...

Inheritance diagram for NetworkAccessManager:
[legend]
Collaboration diagram for NetworkAccessManager:
[legend]

Public Member Functions

virtual NetworkRequestdownloadFromURL (const WebTarget &url)=0
 Creates a network request to download data from the given URL.
virtual TimeRequestnetworkTimeFromURL (const StringView &url, uint02 port=123)=0
 Creates a time request to query network time from the given URL.
virtual NetworkRequestuploadToURL (const WebTarget &request, const Buffer< uint01 > &data)=0
 Creates a network request to upload raw data to the given URL.
virtual NetworkRequestuploadToURL (const WebTarget &request, const File &data)=0
 Creates a network request to upload a file to the given URL.

Detailed Description

Provides an interface for accessing resources on the internet.


Definition at line 144 of file ItemDownloader.h.

Member Function Documentation

◆ downloadFromURL()

virtual NetworkRequest * NetworkAccessManager::downloadFromURL ( const WebTarget & url)
pure virtual

Creates a network request to download data from the given URL.

Parameters
[in]urlThe web target to download from.
Returns
A new NetworkRequest for the download.

Implemented in QtNetworkAccessManager.

◆ networkTimeFromURL()

virtual TimeRequest * NetworkAccessManager::networkTimeFromURL ( const StringView & url,
uint02 port = 123 )
pure virtual

Creates a time request to query network time from the given URL.

Parameters
[in]urlThe NTP server URL.
[in]portThe NTP port (default 123).
Returns
A new TimeRequest for the time query.

Implemented in QtNetworkAccessManager.

◆ uploadToURL() [1/2]

virtual NetworkRequest * NetworkAccessManager::uploadToURL ( const WebTarget & request,
const Buffer< uint01 > & data )
pure virtual

Creates a network request to upload raw data to the given URL.

Parameters
[in]requestThe web target to upload to.
[in]dataThe raw data to upload.
Returns
A new NetworkRequest for the upload.

Implemented in QtNetworkAccessManager.

◆ uploadToURL() [2/2]

virtual NetworkRequest * NetworkAccessManager::uploadToURL ( const WebTarget & request,
const File & data )
pure virtual

Creates a network request to upload a file to the given URL.

Parameters
[in]requestThe web target to upload to.
[in]dataThe file to upload.
Returns
A new NetworkRequest for the upload.

Implemented in QtNetworkAccessManager.


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