kio
SMTP Class Reference
#include <smtp.h>
Inheritance diagram for SMTP:
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::SMTPError |
Constructor & Destructor Documentation
SMTP::SMTP | ( | char * | serverhost = 0 , |
|
unsigned short int | port = 0 , |
|||
int | timeout = DEFAULT_SMTP_TIMEOUT | |||
) |
Member Function Documentation
void SMTP::connectionClosed | ( | ) | [signal] |
void SMTP::error | ( | int | ) | [signal] |
void SMTP::messageSent | ( | ) | [signal] |
void SMTP::setRecipientAddress | ( | const QString & | recipient | ) |
The documentation for this class was generated from the following files: