kio Library API Documentation

SMTP Class Reference

Inheritance diagram for SMTP:

QObject List of all members.

Public Types

enum  SMTPServerStatus {
  NONE = 0, GREET = 220, GOODBYE = 221, SUCCESSFUL = 250,
  READYDATA = 354, ERROR = 501, UNKNOWN = 550
}
enum  SMTPClientStatus {
  INIT = 50, IN = 100, READY = 150, SENTFROM = 200,
  SENTTO = 250, DATA = 300, FINISHED = 350, QUIT = 400,
  OUT = 450, CERROR = 500
}
enum  SMTPError {
  NOERROR = 0, CONNECTERROR = 10, NOTCONNECTED = 11, CONNECTTIMEOUT = 15,
  INTERACTTIMEOUT = 16, UNKNOWNRESPONSE = 20, UNKNOWNUSER = 30, COMMAND = 40
}

Public Slots

void openConnection ()
void sendMessage ()
void closeConnection ()
void connectTimerTick ()
void connectTimedOut ()
void interactTimedOut ()
void socketRead (KSocket *)
void socketClose (KSocket *)

Signals

void connectionClosed ()
void messageSent ()
void error (int)

Public Member Functions

 SMTP (char *serverhost=0, unsigned short int port=0, int timeout=DEFAULT_SMTP_TIMEOUT)
 ~SMTP ()
void setServerHost (const QString &serverhost)
void setPort (unsigned short int port)
void setTimeOut (int timeout)
bool isConnected ()
bool isFinished ()
QString getLastLine ()
void setSenderAddress (const QString &sender)
void setRecipientAddress (const QString &recipient)
void setMessageSubject (const QString &subject)
void setMessageBody (const QString &message)
void setMessageHeader (const QString &header)

Protected Member Functions

void processLine (QString *line)

Detailed Description

Definition at line 40 of file smtp.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kio Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Jun 12 11:36:10 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003