Main Page   Class Hierarchy   Compound List   File List   Compound Members  

wxSMTPListener Class Reference

Public available interface for classes who wants to be notified asynchronly about SMTP events. More...

#include <smtp.h>

Inheritance diagram for wxSMTPListener::

SendDialog List of all members.

Public Methods

virtual void OnSocketError (int errorCode)
 Will be called on errors. More...

virtual void OnRecipientAdded (const wxString &address, int errorCode)
 Will be called if the SMTP server has acknowledged the RCPT command, which is the case, if a recipient was added. More...

virtual void OnDataSent (int errorCode)
 Will be called if the SMTP server has acknowledged the DATA command, which is the case, if the email text was sent. More...


Detailed Description

Public available interface for classes who wants to be notified asynchronly about SMTP events.

Such classes can use this class as a base class and implement the methods of this class for receiving and evaluating some events.

See also:
For an example see WinoDialog.

Definition at line 23 of file smtp.h.


Member Function Documentation

virtual void wxSMTPListener::OnDataSent int    errorCode [inline, virtual]
 

Will be called if the SMTP server has acknowledged the DATA command, which is the case, if the email text was sent.

TODO: Currently this is only sent, if the email was successfully sent.

Parameters:
address  The recipient who was added.
errorCode  1, if successfully added, 0 otherwise. TODO: perhaps a error enumeration type would be better.

Reimplemented in SendDialog.

Definition at line 47 of file smtp.h.

Referenced by wxSMTP::OnDataSuccess().

virtual void wxSMTPListener::OnRecipientAdded const wxString &    address,
int    errorCode
[inline, virtual]
 

Will be called if the SMTP server has acknowledged the RCPT command, which is the case, if a recipient was added.

Parameters:
address  The recipient who was added.
errorCode  1, if successfully added, 0 otherwise. TODO: perhaps a error enumeration type would be better.

Reimplemented in SendDialog.

Definition at line 38 of file smtp.h.

Referenced by wxSMTP::OnRecipientError(), and wxSMTP::OnRecipientSuccess().

virtual void wxSMTPListener::OnSocketError int    errorCode [inline, virtual]
 

Will be called on errors.

Not implemented.

Parameters:
errorCode  TODO: What type of error code should we use?

Reimplemented in SendDialog.

Definition at line 30 of file smtp.h.


Generated on Mon May 6 01:14:20 2002 for Wino by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001