VMime
POP3Command Class Reference

#include <POP3Command.hpp>

Inheritance diagram for POP3Command:
Collaboration diagram for POP3Command:

Public Member Functions

virtual void send (shared_ptr< POP3Connection > conn)
 
virtual const string getText () const
 
virtual const string getTraceText () const
 

Static Public Member Functions

static shared_ptr< POP3CommandCAPA ()
 
static shared_ptr< POP3CommandNOOP ()
 
static shared_ptr< POP3CommandAUTH (const string &mechName)
 
static shared_ptr< POP3CommandAUTH (const string &mechName, const string &initialResponse)
 
static shared_ptr< POP3CommandSTLS ()
 
static shared_ptr< POP3CommandAPOP (const string &username, const string &digest)
 
static shared_ptr< POP3CommandUSER (const string &username)
 
static shared_ptr< POP3CommandPASS (const string &password)
 
static shared_ptr< POP3CommandSTAT ()
 
static shared_ptr< POP3CommandLIST ()
 
static shared_ptr< POP3CommandLIST (const unsigned long msg)
 
static shared_ptr< POP3CommandUIDL ()
 
static shared_ptr< POP3CommandUIDL (const unsigned long msg)
 
static shared_ptr< POP3CommandDELE (const unsigned long msg)
 
static shared_ptr< POP3CommandRETR (const unsigned long msg)
 
static shared_ptr< POP3CommandTOP (const unsigned long msg, const unsigned long lines)
 
static shared_ptr< POP3CommandRSET ()
 
static shared_ptr< POP3CommandQUIT ()
 
static shared_ptr< POP3CommandcreateCommand (const string &text, const string &traceText="")
 

Protected Member Functions

 POP3Command (const string &text, const string &traceText)
 
 POP3Command (const POP3Command &)
 
- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

A POP3 command that will be sent to the server.

Constructor & Destructor Documentation

◆ POP3Command() [1/2]

POP3Command ( const string text,
const string traceText 
)
protected

◆ POP3Command() [2/2]

POP3Command ( const POP3Command )
protected

Member Function Documentation

◆ APOP()

shared_ptr< POP3Command > APOP ( const string username,
const string digest 
)
static

◆ AUTH() [1/2]

shared_ptr< POP3Command > AUTH ( const string mechName)
static

◆ AUTH() [2/2]

shared_ptr< POP3Command > AUTH ( const string mechName,
const string initialResponse 
)
static

◆ CAPA()

shared_ptr< POP3Command > CAPA ( )
static

◆ createCommand()

shared_ptr< POP3Command > createCommand ( const string text,
const string traceText = "" 
)
static

◆ DELE()

◆ getText()

const string getText ( ) const
virtual

Returns the full text of the command, including command name and parameters (if any).

Returns
command text (eg. "LIST 42")

◆ getTraceText()

const string getTraceText ( ) const
virtual

Returns the full text of the command, suitable for outputing to the tracer.

Returns
trace text (eg. "USER myusername")

◆ LIST() [1/2]

shared_ptr< POP3Command > LIST ( )
static

◆ LIST() [2/2]

◆ NOOP()

shared_ptr< POP3Command > NOOP ( )
static

References POP3Command::createCommand().

Referenced by POP3Store::noop().

◆ PASS()

shared_ptr< POP3Command > PASS ( const string password)
static

◆ QUIT()

shared_ptr< POP3Command > QUIT ( )
static

◆ RETR()

◆ RSET()

shared_ptr< POP3Command > RSET ( )
static

◆ send()

void send ( shared_ptr< POP3Connection conn)
virtual

Sends this command over the specified connection.

Parameters
connconnection onto which the command will be sent

References vmime::dynamicCast().

◆ STAT()

shared_ptr< POP3Command > STAT ( )
static

◆ STLS()

shared_ptr< POP3Command > STLS ( )
static

◆ TOP()

◆ UIDL() [1/2]

shared_ptr< POP3Command > UIDL ( )
static

◆ UIDL() [2/2]

◆ USER()

shared_ptr< POP3Command > USER ( const string username)
static

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