|
DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
|
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 |
| const std::map< RequestId, SentRequestReply > & | replies () const noexcept |
| Retrieves the map of all sent requests and their respective replies. Useful primarily in testing. | |
| RequestSender & | requestSender () noexcept |
| Provides access to the request sender used. | |
| foundation::QtPtr< ReplyNotifier > | send (const RequestBuilder &request) override |
| Sends a network request and returns a notifier for the reply. | |
| Public Member Functions inherited from drn::networking::NotifyingSender | |
| 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 |
Retrieves the map of all sent requests and their respective replies. Useful primarily in testing.
|
nodiscardnoexcept |
Provides access to the request sender used.
|
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.