E-MailRelay
|
A Filter class that passes the name of a message file to a remote network server. More...
#include <gnetworkfilter.h>
Public Member Functions | |
NetworkFilter (GNet::ExceptionSink, FileStore &, const std::string &server_location, unsigned int connection_timeout, unsigned int response_timeout) | |
Constructor. More... | |
~NetworkFilter () override | |
Destructor. More... | |
NetworkFilter (const NetworkFilter &)=delete | |
NetworkFilter (NetworkFilter &&)=delete | |
void | operator= (const NetworkFilter &)=delete |
void | operator= (NetworkFilter &&)=delete |
![]() | |
virtual | ~Filter ()=default |
Destructor. | |
virtual std::string | id () const =0 |
Returns the id passed to the derived-class constructor. More... | |
virtual bool | simple () const =0 |
Returns true if the concrete filter class is one that can never change the file (eg. More... | |
virtual void | start (const MessageId &)=0 |
Starts the filter for the given message. More... | |
virtual G::Slot::Signal< int > & | doneSignal ()=0 |
Returns a signal which is raised once start() has completed or failed. More... | |
virtual void | cancel ()=0 |
Aborts any incomplete filtering. | |
virtual bool | abandoned () const =0 |
Returns true if the filter result was 'abandoned'. | |
virtual std::string | response () const =0 |
Returns a non-empty response string iff the filter failed, or an empty response if successful or abandoned. | |
virtual std::string | reason () const =0 |
Returns a non-empty reason string iff the filter failed, or an empty reason if successful or abandoned. | |
virtual bool | special () const =0 |
Returns true if the filter indicated special handling is required. | |
std::string | str (bool server_side) const |
Returns a diagnostic string for logging. More... | |
Additional Inherited Members | |
![]() | |
enum class | Result { f_ok = 0 , f_abandon = 1 , f_fail = 2 } |
A Filter class that passes the name of a message file to a remote network server.
The response of ok/abandon/fail is delivered via the base class's doneSignal().
Definition at line 41 of file gnetworkfilter.h.
GSmtp::NetworkFilter::NetworkFilter | ( | GNet::ExceptionSink | es, |
FileStore & | file_store, | ||
const std::string & | server_location, | ||
unsigned int | connection_timeout, | ||
unsigned int | response_timeout | ||
) |
Constructor.
Definition at line 26 of file gnetworkfilter.cpp.
|
override |
Destructor.
Definition at line 38 of file gnetworkfilter.cpp.