DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::networking::QtRequestSender Class Referencefinal

This is designed to send network requests with the help of Qt's QNetworkAccessManager. More...

#include <QtRequestSender.hpp>

Inheritance diagram for drn::networking::QtRequestSender:
Collaboration diagram for drn::networking::QtRequestSender:

Public Member Functions

 QtRequestSender (const foundation::QtPtr< QObject > &parent)
 Full initialisation constructor that is responsible for sending network requests within a Qt application. It takes a parent Qt object as a parameter to ensure proper memory management and adherence to the Qt object hierarchy.
 
foundation::UniqueQtPtr< ReplyResponseget (const QNetworkRequest &request) override
 
- Public Member Functions inherited from drn::networking::RequestSender
 RequestSender (const foundation::QtPtr< QObject > &parent)
 Fully initialises the object with a specified parent.
 

Detailed Description

This is designed to send network requests with the help of Qt's QNetworkAccessManager.

Constructor & Destructor Documentation

◆ QtRequestSender()

drn::networking::QtRequestSender::QtRequestSender ( const foundation::QtPtr< QObject > & parent)
explicit

Full initialisation constructor that is responsible for sending network requests within a Qt application. It takes a parent Qt object as a parameter to ensure proper memory management and adherence to the Qt object hierarchy.

Parameters
parentA smart pointer to the Qt object that will act as the parent of this instance. This parameter ensures the proper management of the object's lifecycle.

Member Function Documentation

◆ get()

foundation::UniqueQtPtr< ReplyResponse > drn::networking::QtRequestSender::get ( const QNetworkRequest & request)
overridevirtual

Sends a GET request using the specified QNetworkRequest.

Parameters
requestThe object containing all the necessary information for the sending GET request.
Returns
An object which wraps the network reply. This object can be used to handle and process the response data.

Implements drn::networking::RequestSender.