TreeFrogFramework 2.10
Loading...
Searching...
No Matches
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, uint16_t port, QObject *parent=0)
 
 ~TPopMailer ()
 
QString key () const
 
QString hostName () const
 
void setHostName (const QString &hostName)
 
uint16_t port () const
 
void setPort (uint16_t 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.

See also
TActionMailer

Constructor & Destructor Documentation

◆ TPopMailer() [1/2]

TPopMailer::TPopMailer ( QObject *  parent = 0)

◆ TPopMailer() [2/2]

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

◆ ~TPopMailer()

TPopMailer::~TPopMailer ( )

Member Function Documentation

◆ cmd()

bool TPopMailer::cmd ( const QByteArray &  command,
QByteArray *  reply = 0 
)
protected

◆ cmdApop()

bool TPopMailer::cmdApop ( const QByteArray &  token)
protected

◆ cmdPass()

bool TPopMailer::cmdPass ( )
protected

◆ cmdQuit()

bool TPopMailer::cmdQuit ( )
protected

◆ cmdRetr()

bool TPopMailer::cmdRetr ( int  index,
QByteArray &  message 
)
protected

◆ cmdStat()

bool TPopMailer::cmdStat ( )
protected

◆ cmdUser()

bool TPopMailer::cmdUser ( )
protected

◆ connectToHost()

bool TPopMailer::connectToHost ( )

◆ hostName()

QString TPopMailer::hostName ( ) const
inline

◆ key()

QString TPopMailer::key ( ) const
inline

◆ port()

uint16_t TPopMailer::port ( ) const
inline

◆ quit()

void TPopMailer::quit ( )

◆ readMail()

QByteArray TPopMailer::readMail ( int  index)

◆ readResponse()

bool TPopMailer::readResponse ( QByteArray *  reply = 0)
protected

◆ setApopEnabled()

void TPopMailer::setApopEnabled ( bool  enable)

◆ setHostName()

void TPopMailer::setHostName ( const QString &  hostName)

◆ setPassword()

void TPopMailer::setPassword ( const QByteArray &  password)
inline

◆ setPort()

void TPopMailer::setPort ( uint16_t  port)

◆ setUserName()

void TPopMailer::setUserName ( const QByteArray &  username)
inline

◆ write()

bool TPopMailer::write ( const QByteArray &  command)
protected

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