TreeFrogFramework  1.18
Public Member Functions | Protected Member Functions | List of all members
TPopMailer Class Reference

#include <tpopmailer.h>

Inheritance diagram for TPopMailer:
Inheritance graph
[legend]
Collaboration diagram for TPopMailer:
Collaboration graph
[legend]

Public Member Functions

 TPopMailer (QObject *parent=0)
 
 TPopMailer (const QString &hostName, quint16 port, QObject *parent=0)
 
 ~TPopMailer ()
 
QString key () const
 
QString hostName () const
 
void setHostName (const QString &hostName)
 
quint16 port () const
 
void setPort (quint16 port)
 
void setUserName (const QByteArray &username)
 
void setPassword (const QByteArray &password)
 
void setApopEnabled (bool enable)
 
bool connectToHost ()
 
QByteArray readMail (int index)
 
void quit ()
 

Protected Member Functions

bool cmdUser ()
 
bool cmdPass ()
 
bool cmdApop (const QByteArray &token)
 
bool cmdStat ()
 
bool cmdRetr (int index, QByteArray &message)
 
bool cmdQuit ()
 
bool cmd (const QByteArray &command, QByteArray *reply=0)
 
bool readResponse (QByteArray *reply=0)
 
bool write (const QByteArray &command)
 

Detailed Description

The TPopMailer class provides a simple functionality to receive emails by POP.

Constructor & Destructor Documentation

TPopMailer::TPopMailer ( QObject *  parent = 0)
TPopMailer::TPopMailer ( const QString &  hostName,
quint16  port,
QObject *  parent = 0 
)
TPopMailer::~TPopMailer ( )

Member Function Documentation

bool TPopMailer::cmd ( const QByteArray &  command,
QByteArray *  reply = 0 
)
protected
bool TPopMailer::cmdApop ( const QByteArray &  token)
protected
bool TPopMailer::cmdPass ( )
protected
bool TPopMailer::cmdQuit ( )
protected
bool TPopMailer::cmdRetr ( int  index,
QByteArray &  message 
)
protected
bool TPopMailer::cmdStat ( )
protected
bool TPopMailer::cmdUser ( )
protected
bool TPopMailer::connectToHost ( )
QString TPopMailer::hostName ( ) const
inline
QString TPopMailer::key ( ) const
inline
quint16 TPopMailer::port ( ) const
inline
void TPopMailer::quit ( )
QByteArray TPopMailer::readMail ( int  index)
bool TPopMailer::readResponse ( QByteArray *  reply = 0)
protected
void TPopMailer::setApopEnabled ( bool  enable)
void TPopMailer::setHostName ( const QString &  hostName)
void TPopMailer::setPassword ( const QByteArray &  password)
inline
void TPopMailer::setPort ( quint16  port)
void TPopMailer::setUserName ( const QByteArray &  username)
inline
bool TPopMailer::write ( const QByteArray &  command)
protected

The documentation for this class was generated from the following files: