• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

SMTP Class Reference

#include <smtp.h>

Inheritance diagram for SMTP:

Inheritance graph
[legend]

List of all members.


Public Types

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
}
enum  SMTPServerStatus {
  NONE = 0, GREET = 220, GOODBYE = 221, SUCCESSFUL = 250,
  READYDATA = 354, ERROR = 501, UNKNOWN = 550
}

Public Slots

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

Signals

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

Public Member Functions

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

Protected Member Functions

void processLine (QString *line)

Detailed Description

Definition at line 40 of file smtp.h.


Member Enumeration Documentation

enum SMTP::SMTPClientStatus

Enumerator:
INIT 
IN 
READY 
SENTFROM 
SENTTO 
DATA 
FINISHED 
QUIT 
OUT 
CERROR 

Definition at line 71 of file smtp.h.

enum SMTP::SMTPError

Enumerator:
NOERROR 
CONNECTERROR 
NOTCONNECTED 
CONNECTTIMEOUT 
INTERACTTIMEOUT 
UNKNOWNRESPONSE 
UNKNOWNUSER 
COMMAND 

Definition at line 84 of file smtp.h.

enum SMTP::SMTPServerStatus

Enumerator:
NONE 
GREET 
GOODBYE 
SUCCESSFUL 
READYDATA 
ERROR 
UNKNOWN 

Definition at line 61 of file smtp.h.


Constructor & Destructor Documentation

SMTP::SMTP ( char *  serverhost = 0,
unsigned short int  port = 0,
int  timeout = DEFAULT_SMTP_TIMEOUT 
)

Definition at line 11 of file smtp.cpp.

SMTP::~SMTP (  ) 

Definition at line 49 of file smtp.cpp.


Member Function Documentation

void SMTP::closeConnection ( void   )  [slot]

Definition at line 124 of file smtp.cpp.

void SMTP::connectionClosed (  )  [signal]

void SMTP::connectTimedOut ( void   )  [slot]

Definition at line 183 of file smtp.cpp.

void SMTP::connectTimerTick ( void   )  [slot]

Definition at line 148 of file smtp.cpp.

void SMTP::error ( int   )  [signal]

QString SMTP::getLastLine (  )  [inline]

Definition at line 53 of file smtp.h.

void SMTP::interactTimedOut ( void   )  [slot]

Definition at line 194 of file smtp.cpp.

bool SMTP::isConnected (  )  [inline]

Definition at line 51 of file smtp.h.

bool SMTP::isFinished (  )  [inline]

Definition at line 52 of file smtp.h.

void SMTP::messageSent (  )  [signal]

void SMTP::openConnection ( void   )  [slot]

Definition at line 118 of file smtp.cpp.

void SMTP::processLine ( QString *  line  )  [protected]

Definition at line 247 of file smtp.cpp.

void SMTP::sendMessage ( void   )  [slot]

Definition at line 129 of file smtp.cpp.

void SMTP::setMessageBody ( const QString &  message  ) 

Definition at line 108 of file smtp.cpp.

void SMTP::setMessageHeader ( const QString &  header  ) 

Definition at line 113 of file smtp.cpp.

void SMTP::setMessageSubject ( const QString &  subject  ) 

Definition at line 103 of file smtp.cpp.

void SMTP::setPort ( unsigned short int  port  ) 

Definition at line 64 of file smtp.cpp.

void SMTP::setRecipientAddress ( const QString &  recipient  ) 

Definition at line 98 of file smtp.cpp.

void SMTP::setSenderAddress ( const QString &  sender  ) 

Definition at line 74 of file smtp.cpp.

void SMTP::setServerHost ( const QString &  serverhost  ) 

Definition at line 59 of file smtp.cpp.

void SMTP::setTimeOut ( int  timeout  ) 

Definition at line 69 of file smtp.cpp.

void SMTP::socketClose ( KSocket *  socket  )  [slot]

Definition at line 231 of file smtp.cpp.

void SMTP::socketRead ( KSocket *  socket  )  [slot]

Definition at line 205 of file smtp.cpp.


The documentation for this class was generated from the following files:
  • smtp.h
  • smtp.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal