DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::networking::NotifyingSender Struct Referenceabstract

Derived objects provide an API for sending network requests and getting their replies as a notification signal. More...

#include <NotifyingSender.hpp>

Inheritance diagram for drn::networking::NotifyingSender:
Collaboration diagram for drn::networking::NotifyingSender:

Public Member Functions

 NotifyingSender ()=default
 
 NotifyingSender (const NotifyingSender &)=delete
 
 NotifyingSender (NotifyingSender &&)=default
 
virtual ~NotifyingSender ()=default
 
NotifyingSenderoperator= (const NotifyingSender &)=delete
 
NotifyingSenderoperator= (NotifyingSender &&)=default
 
virtual foundation::QtPtr< ReplyNotifiersend (const RequestBuilder &request)=0
 When implemented, sends a network request and returns a notifier for the reply.
 

Detailed Description

Derived objects provide an API for sending network requests and getting their replies as a notification signal.

Constructor & Destructor Documentation

◆ NotifyingSender() [1/3]

drn::networking::NotifyingSender::NotifyingSender ( )
default
Here is the caller graph for this function:

◆ NotifyingSender() [2/3]

drn::networking::NotifyingSender::NotifyingSender ( const NotifyingSender & )
delete
Here is the call graph for this function:

◆ NotifyingSender() [3/3]

drn::networking::NotifyingSender::NotifyingSender ( NotifyingSender && )
default
Here is the call graph for this function:

◆ ~NotifyingSender()

virtual drn::networking::NotifyingSender::~NotifyingSender ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

NotifyingSender & drn::networking::NotifyingSender::operator= ( const NotifyingSender & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

NotifyingSender & drn::networking::NotifyingSender::operator= ( NotifyingSender && )
default
Here is the call graph for this function:

◆ send()

virtual foundation::QtPtr< ReplyNotifier > drn::networking::NotifyingSender::send ( const RequestBuilder & request)
nodiscardpure virtual

When implemented, sends a network request and returns a notifier for the reply.

Exceptions
ReplyErrorWhen the request to be sent, cannot be sent.
Parameters
requestThe request to be sent.
Returns
An object that will be notified about any status of the request.

Implemented in drn::networking::RequestManager.