GSmtp::ProtocolMessageStore Class Reference

A concrete implementation of the ProtocolMessage interface that stores incoming messages in the message store. More...

#include <gprotocolmessagestore.h>

Inheritance diagram for GSmtp::ProtocolMessageStore:

GSmtp::ProtocolMessage

List of all members.

Public Member Functions

 ProtocolMessageStore (MessageStore &store, std::auto_ptr< Processor >)
 Constructor.
virtual ~ProtocolMessageStore ()
 Destructor.
virtual G::Signal3< bool,
unsigned long, std::string > & 
doneSignal ()
 Final override from GSmtp::ProtocolMessage.
virtual void reset ()
 Final override from GSmtp::ProtocolMessage.
virtual void clear ()
 Final override from GSmtp::ProtocolMessage.
virtual bool setFrom (const std::string &from_user)
 Final override from GSmtp::ProtocolMessage.
virtual bool addTo (const std::string &to_user, VerifierStatus to_status)
 Final override from GSmtp::ProtocolMessage.
virtual void addReceived (const std::string &)
 Final override from GSmtp::ProtocolMessage.
virtual bool addText (const std::string &)
 Final override from GSmtp::ProtocolMessage.
virtual std::string from () const
 Final override from GSmtp::ProtocolMessage.
virtual void process (const std::string &auth_id, const std::string &client_ip)
 Final override from GSmtp::ProtocolMessage.


Detailed Description

A concrete implementation of the ProtocolMessage interface that stores incoming messages in the message store.

See also:
GSmtp::ProtocolMessageForward

Definition at line 45 of file gprotocolmessagestore.h.


Constructor & Destructor Documentation

GSmtp::ProtocolMessageStore::ProtocolMessageStore ( MessageStore store,
std::auto_ptr< Processor processor 
)

Constructor.

Definition at line 30 of file gprotocolmessagestore.cpp.

References G::slot().

GSmtp::ProtocolMessageStore::~ProtocolMessageStore (  )  [virtual]

Destructor.

Definition at line 37 of file gprotocolmessagestore.cpp.


Member Function Documentation

G::Signal3< bool, unsigned long, std::string > & GSmtp::ProtocolMessageStore::doneSignal (  )  [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 182 of file gprotocolmessagestore.cpp.

void GSmtp::ProtocolMessageStore::reset (  )  [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 42 of file gprotocolmessagestore.cpp.

References clear(), and G_DEBUG.

void GSmtp::ProtocolMessageStore::clear (  )  [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 48 of file gprotocolmessagestore.cpp.

References G_DEBUG.

Referenced by process(), reset(), and setFrom().

bool GSmtp::ProtocolMessageStore::setFrom ( const std::string &  from_user  )  [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 56 of file gprotocolmessagestore.cpp.

References clear(), G_ASSERT, G_DEBUG, G_WARNING, and GSmtp::MessageStore::newMessage().

bool GSmtp::ProtocolMessageStore::addTo ( const std::string &  to_user,
VerifierStatus  to_status 
) [virtual]

void GSmtp::ProtocolMessageStore::addReceived ( const std::string &  received_line  )  [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 98 of file gprotocolmessagestore.cpp.

References addText(), and G_DEBUG.

bool GSmtp::ProtocolMessageStore::addText ( const std::string &  line  )  [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 104 of file gprotocolmessagestore.cpp.

References G_ASSERT.

Referenced by addReceived().

std::string GSmtp::ProtocolMessageStore::from (  )  const [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 112 of file gprotocolmessagestore.cpp.

void GSmtp::ProtocolMessageStore::process ( const std::string &  auth_id,
const std::string &  client_ip 
) [virtual]

Final override from GSmtp::ProtocolMessage.

Implements GSmtp::ProtocolMessage.

Definition at line 117 of file gprotocolmessagestore.cpp.

References clear(), G::Signal3< P1, P2, P3 >::emit(), G_ASSERT, and G_DEBUG.


The documentation for this class was generated from the following files:

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5