Manages all network requests and handles their responses. More...
#include <RequestManager.hpp>
Public Member Functions | |
RequestManager (const RequestManager &)=delete | |
RequestManager (foundation::UniqueQtPtr< RequestSender > sender, const foundation::QtPtr<::QObject > &parent) | |
Full initialisation constructor initializes the object with a given network request sender. It also sets up a cleanup timer to manage finished notifications, ensuring efficient resource management. | |
RequestManager (RequestManager &&)=delete | |
~RequestManager () override | |
RequestManager & | operator= (const RequestManager &)=delete |
RequestManager & | operator= (RequestManager &&)=delete |
RequestSender & | requestSender () noexcept |
foundation::QtPtr< ReplyNotifier > | send (const RequestBuilder &request) override |
Sends a network request and returns a notifier for the reply. | |
![]() | |
NotifyingSender ()=default | |
NotifyingSender (const NotifyingSender &)=delete | |
NotifyingSender (NotifyingSender &&)=default | |
virtual | ~NotifyingSender ()=default |
NotifyingSender & | operator= (const NotifyingSender &)=delete |
NotifyingSender & | operator= (NotifyingSender &&)=default |
Manages all network requests and handles their responses.
|
explicit |
Full initialisation constructor initializes the object with a given network request sender. It also sets up a cleanup timer to manage finished notifications, ensuring efficient resource management.
sender | An object responsible for sending network requests and responses. |
parent | The parent used to manage the memory and lifecycle of this instance, and ensuring it follows the Qt object hierarchy. |
|
delete |
|
delete |
|
override |
|
delete |
|
delete |
|
nodiscardnoexcept |
|
nodiscardoverridevirtual |
Sends a network request and returns a notifier for the reply.
ReplyError | When the request to be sent, cannot be sent. |
request | The network request to be sent. |
Implements drn::networking::NotifyingSender.