DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
Loading...
Searching...
No Matches
drn::networking::RequestSender Class Referenceabstract

Interface for sending network requests. When deriving, it'll provide methods for sending various network requests. More...

#include <RequestSender.hpp>

Inheritance diagram for drn::networking::RequestSender:
Collaboration diagram for drn::networking::RequestSender:

Public Member Functions

 RequestSender (const foundation::QtPtr< QObject > &parent)
 Fully initialises the object with a specified parent.
virtual foundation::UniqueQtPtr< ReplyResponseget (const QNetworkRequest &request)=0
 When implemented, sends a GET request to the specified network address.

Detailed Description

Interface for sending network requests. When deriving, it'll provide methods for sending various network requests.

Constructor & Destructor Documentation

◆ RequestSender()

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

Fully initialises the object with a specified parent.

Parameters
parentThe parent used to manage the memory and lifecycle of this instance, and ensuring it follows the Qt object hierarchy.

Member Function Documentation

◆ get()

virtual foundation::UniqueQtPtr< ReplyResponse > drn::networking::RequestSender::get ( const QNetworkRequest & request)
pure virtual

When implemented, sends a GET request to the specified network address.

Parameters
requestThe network request to be sent. It should contain all necessary information such as the URL and any required headers.
Returns
An object that encapsulates the network reply information.

Implemented in drn::networking::QtRequestSender.

Here is the caller graph for this function: