E-MailRelay
|
The non-template part of GNet::ClientPtr. More...
#include <gclientptr.h>
Public Member Functions | |
G::Slot::Signal< const std::string &, const std::string &, const std::string & > & | eventSignal () |
See GNet::Client::eventSignal(). More... | |
G::Slot::Signal< const std::string & > & | deleteSignal () |
A signal that is triggered as the client is deleted following an exception handled by this class. More... | |
G::Slot::Signal< const std::string & > & | deletedSignal () |
A signal that is triggered after deleteSignal() once the client has been deleted and the ClientPtr is empty. More... | |
ClientPtrBase (const ClientPtrBase &)=delete | |
ClientPtrBase (ClientPtrBase &&)=delete | |
void | operator= (const ClientPtrBase &)=delete |
void | operator= (ClientPtrBase &&)=delete |
![]() | |
virtual | ~ExceptionHandler () |
Destructor. More... | |
virtual void | onException (ExceptionSource *source, std::exception &e, bool done)=0 |
Called by the event loop when an exception is thrown out of an event loop callback. More... | |
ExceptionHandler (const ExceptionHandler &)=delete | |
ExceptionHandler (ExceptionHandler &&)=delete | |
void | operator= (const ExceptionHandler &)=delete |
void | operator= (ExceptionHandler &&)=delete |
![]() | |
virtual std::string | exceptionSourceId () const |
Returns an identifying string for logging purposes, or the empty string. More... | |
virtual | ~ExceptionSource () |
Destructor. More... | |
ExceptionSource (const ExceptionSource &)=delete | |
ExceptionSource (ExceptionSource &&)=delete | |
void | operator= (const ExceptionSource &)=delete |
void | operator= (ExceptionSource &&)=delete |
Protected Member Functions | |
ClientPtrBase () | |
Default constructor. | |
void | connectSignals (Client &) |
Connects the given client's signals to this object's slots. More... | |
void | disconnectSignals (Client &) noexcept |
Disconnects the given client's signals from this object's slots. More... | |
The non-template part of GNet::ClientPtr.
It is an ExcptionHandler so that exceptions thrown by the Client out to the event loop can be delivered back to reset the ClientPtr with the expected Client onDelete() semantics (like GNet::ServerPeer).
Definition at line 45 of file gclientptr.h.
|
protected |
Connects the given client's signals to this object's slots.
Definition at line 27 of file gclientptr.cpp.
G::Slot::Signal< const std::string & > & GNet::ClientPtrBase::deletedSignal | ( | ) |
A signal that is triggered after deleteSignal() once the client has been deleted and the ClientPtr is empty.
Definition at line 32 of file gclientptr.cpp.
G::Slot::Signal< const std::string & > & GNet::ClientPtrBase::deleteSignal | ( | ) |
A signal that is triggered as the client is deleted following an exception handled by this class.
The parameter is normally the exception string, but it is the empty string for GNet::Done exceptions or if the client was finished().
Definition at line 42 of file gclientptr.cpp.
|
protectednoexcept |
Disconnects the given client's signals from this object's slots.
Definition at line 47 of file gclientptr.cpp.
G::Slot::Signal< const std::string &, const std::string &, const std::string & > & GNet::ClientPtrBase::eventSignal | ( | ) |
See GNet::Client::eventSignal().
Definition at line 37 of file gclientptr.cpp.