2#include <NDEVR/NtpClient.h>
3#include <NDEVR/ItemDownloader.h>
4#include <NDEVR/String.h>
6#include <NDEVR/Thread.h>
7#include <QNetworkRequest>
8#include <QNetworkAccessManager>
9#include <QNetworkReply>
13 static uint02 ntp_rx_port = 42912;
28 virtual QByteArray
data()
override;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
Provides an interface for accessing resources on the internet.
Definition ItemDownloader.h:109
A request for data or information from a network.
Definition ItemDownloader.h:51
Allows the application to request network data using the Qt Framework.
Definition QTNetworkRequest.h:40
NetworkRequest * uploadToURL(const WebTarget &request, const File &data) override
virtual TimeRequest * networkTimeFromURL(const String &url, uint02 port) override
QNetworkAccessManager * m_manager
Definition QTNetworkRequest.h:48
virtual NetworkRequest * downloadFromURL(const WebTarget &url) override
virtual NetworkRequest * uploadToURL(const WebTarget &request, const Buffer< uint01 > &data) override
static QNetworkRequest ConvertToRequest(const WebTarget &target)
Contains information specific for making a network request within the Qt Framework.
Definition QTNetworkRequest.h:18
QtNetworkRequest(const QNetworkRequest &request, QNetworkAccessManager *manager)
void setData(const File &data)
QNetworkAccessManager * m_manager
Definition QTNetworkRequest.h:32
virtual void close() override
void setReply(QNetworkReply *reply)
virtual bool isRunning() override
virtual QByteArray data() override
QNetworkRequest m_request
Definition QTNetworkRequest.h:30
Buffer< uint01 > m_data
Definition QTNetworkRequest.h:33
virtual void abort() override
QNetworkReply * m_reply
Definition QTNetworkRequest.h:31
File m_file
Definition QTNetworkRequest.h:34
void setData(const Buffer< uint01 > &data)
virtual bool start() override
The core String class for the NDEVR API.
Definition String.h:69
A request to get the time from the network.
Definition ItemDownloader.h:77
uint16_t uint02
-Defines an alias representing a 2 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:88
A url target and optional username and password for a network request.
Definition ItemDownloader.h:99