Main Page   Class Hierarchy   Compound List   File List   Compound Members  

wxCmdlineProtocol Class Reference

Base class for all command line oriented internet protocols. More...

#include <cmdprot.h>

Inheritance diagram for wxCmdlineProtocol::

wxSMTP List of all members.

Public Methods

void SetHost (const wxString &host, const wxString &user="", const wxString &password="")
 Sets the SMTP server and the optional login information. More...

virtual void EvaluateLine (const wxString &line)=0
 Is called for every line input. More...

virtual void OnConnect (wxSocketEvent &event)=0
 Is called if successfully connected to the server. More...

void OnInput (wxSocketEvent &event)
 This method is called if new data is available on the socket. More...

void OnSocketEvent (wxSocketEvent &event)
 Message handler for wxWindows socket events. More...

void Write (const wxString &msg)
 Writes the specified string to the socket. More...


Detailed Description

Base class for all command line oriented internet protocols.

Definition at line 20 of file cmdprot.h.


Member Function Documentation

virtual void wxCmdlineProtocol::EvaluateLine const wxString &    line [pure virtual]
 

Is called for every line input.

Parameters:
line  The server response.

Reimplemented in wxSMTP.

Referenced by OnInput().

virtual void wxCmdlineProtocol::OnConnect wxSocketEvent &    event [pure virtual]
 

Is called if successfully connected to the server.

Parameters:
event  The wxSOCKET_CONNECTION event.

Reimplemented in wxSMTP.

Referenced by OnSocketEvent().

void wxCmdlineProtocol::OnInput wxSocketEvent &    event
 

This method is called if new data is available on the socket.

It extracts one line, terminated by CRLF, and calls EvaluateLine.

Parameters:
event  The wxSOCKET_INPUT event.

Definition at line 68 of file cmdprot.cpp.

References EvaluateLine().

Referenced by OnSocketEvent().

void wxCmdlineProtocol::OnSocketEvent wxSocketEvent &    event
 

Message handler for wxWindows socket events.

Definition at line 99 of file cmdprot.cpp.

References OnConnect(), and OnInput().

void wxCmdlineProtocol::SetHost const wxString &    host,
const wxString &    user = "",
const wxString &    password = ""
 

Sets the SMTP server and the optional login information.

No server connection will be established until 'Send' is called.

Parameters:
host  SMTP server.
user  User used for login, if specified.
password  Password used for login, if specified.

Definition at line 46 of file cmdprot.cpp.

Referenced by SendDialog::SendDialog().

void wxCmdlineProtocol::Write const wxString &    msg
 

Writes the specified string to the socket.

Parameters:
msg  The string to be written.

Definition at line 117 of file cmdprot.cpp.

Referenced by ConnectedState::onResponse(), wxSMTP::SendFrom(), and wxSMTP::SendNextRecipient().


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