VMime
POP3Store Class Reference

#include <POP3Store.hpp>

Inheritance diagram for POP3Store:
Collaboration diagram for POP3Store:

Public Member Functions

 POP3Store (shared_ptr< session > sess, shared_ptr< security::authenticator > auth, const bool secured=false)
 ~POP3Store ()
const string getProtocolName () const
shared_ptr< foldergetDefaultFolder ()
shared_ptr< foldergetRootFolder ()
shared_ptr< foldergetFolder (const folder::path &path)
bool isValidFolderName (const folder::path::component &name) const
const serviceInfosgetInfos () const
void connect ()
bool isConnected () const
void disconnect ()
void noop ()
int getCapabilities () const
bool isSecuredConnection () const
shared_ptr< connectionInfosgetConnectionInfos () const
shared_ptr< POP3ConnectiongetConnection ()
bool isPOP3S () const
Public Member Functions inherited from store
Type getType () const
Public Member Functions inherited from service
virtual ~service ()
shared_ptr< const sessiongetSession () const
shared_ptr< sessiongetSession ()
shared_ptr< const security::authenticatorgetAuthenticator () const
shared_ptr< security::authenticatorgetAuthenticator ()
void setAuthenticator (shared_ptr< security::authenticator > auth)
void setCertificateVerifier (shared_ptr< security::cert::certificateVerifier > cv)
shared_ptr< security::cert::certificateVerifiergetCertificateVerifier ()
void setSocketFactory (shared_ptr< socketFactory > sf)
shared_ptr< socketFactorygetSocketFactory ()
void setTimeoutHandlerFactory (shared_ptr< timeoutHandlerFactory > thf)
shared_ptr< timeoutHandlerFactorygetTimeoutHandlerFactory ()
void setTracerFactory (shared_ptr< tracerFactory > tf)
shared_ptr< tracerFactorygetTracerFactory ()
template<typename TYPE>
void setProperty (const string &name, const TYPE &value)

Static Public Member Functions

static const serviceInfosgetInfosInstance ()

Additional Inherited Members

Public Types inherited from store
enum  Capabilities {
  CAPABILITY_CREATE_FOLDER = (1 << 0) , CAPABILITY_RENAME_FOLDER = (1 << 1) , CAPABILITY_ADD_MESSAGE = (1 << 2) , CAPABILITY_COPY_MESSAGE = (1 << 3) ,
  CAPABILITY_DELETE_MESSAGE = (1 << 4) , CAPABILITY_PARTIAL_FETCH = (1 << 5) , CAPABILITY_MESSAGE_FLAGS = (1 << 6) , CAPABILITY_EXTRACT_PART = (1 << 7)
}
Public Types inherited from service
enum  Type { TYPE_STORE = 0 , TYPE_TRANSPORT }
Protected Member Functions inherited from store
 store (shared_ptr< session > sess, const serviceInfos &infos, shared_ptr< security::authenticator > auth)
Protected Member Functions inherited from service
 service (shared_ptr< session > sess, const serviceInfos &infos, shared_ptr< security::authenticator > auth)
Protected Member Functions inherited from object
 object ()
 object (const object &)
objectoperator= (const object &)
virtual ~object ()

Detailed Description

POP3 store service.

Constructor & Destructor Documentation

◆ POP3Store()

POP3Store ( shared_ptr< session > sess,
shared_ptr< security::authenticator > auth,
const bool secured = false )

◆ ~POP3Store()

~POP3Store ( )

References disconnect(), and isConnected().

Member Function Documentation

◆ connect()

void connect ( )
virtual

Connect to service.

Implements service.

References vmime::dynamicCast(), service::getAuthenticator(), and isConnected().

Referenced by POP3Message.

◆ disconnect()

void disconnect ( )
virtual

Disconnect from service.

Implements service.

References isConnected().

Referenced by POP3Message, and ~POP3Store().

◆ getCapabilities()

int getCapabilities ( ) const
virtual

Return the features supported by this service.

This is a combination of store::CAPABILITY_xxx flags.

Returns
features supported by this service

Implements store.

References store::CAPABILITY_DELETE_MESSAGE.

Referenced by POP3Message.

◆ getConnection()

shared_ptr< POP3Connection > getConnection ( )

Referenced by POP3Message.

◆ getConnectionInfos()

shared_ptr< connectionInfos > getConnectionInfos ( ) const
virtual

Get information about the connection.

Returns
information about the connection

Implements service.

Referenced by POP3Message.

◆ getDefaultFolder()

shared_ptr< folder > getDefaultFolder ( )
virtual

Return the default folder.

This is protocol dependent and usually is the INBOX folder.

Returns
default folder

Implements store.

References vmime::dynamicCast(), isConnected(), and POP3Folder.

Referenced by POP3Message.

◆ getFolder()

shared_ptr< folder > getFolder ( const folder::path & path)
virtual

Return the folder specified by the path.

Parameters
pathabsolute folder path
Returns
folder at the specified path

Implements store.

References vmime::dynamicCast(), isConnected(), and POP3Folder.

Referenced by POP3Message.

◆ getInfos()

const serviceInfos & getInfos ( ) const
virtual

Return information about this service.

Returns
information about the service

Implements service.

Referenced by POP3Message.

◆ getInfosInstance()

const serviceInfos & getInfosInstance ( )
static

Referenced by POP3Message, and POP3Store().

◆ getProtocolName()

const string getProtocolName ( ) const
virtual

Return the protocol name of this service.

Returns
protocol name

Implements service.

Referenced by POP3Message.

◆ getRootFolder()

shared_ptr< folder > getRootFolder ( )
virtual

Return the root folder.

This is protocol dependent and usually is the user's mail drop root folder.

Returns
root folder

Implements store.

References vmime::dynamicCast(), isConnected(), and POP3Folder.

Referenced by POP3Message.

◆ isConnected()

bool isConnected ( ) const
virtual

Test whether this service is connected.

Returns
true if the service is connected, false otherwise

Implements service.

Referenced by connect(), disconnect(), getDefaultFolder(), getFolder(), getRootFolder(), POP3Message, and ~POP3Store().

◆ isPOP3S()

bool isPOP3S ( ) const

Referenced by POP3Message.

◆ isSecuredConnection()

bool isSecuredConnection ( ) const
virtual

Check whether the connection is secured.

Returns
true if the connection is secured, false otherwise

Implements service.

Referenced by POP3Message.

◆ isValidFolderName()

bool isValidFolderName ( const folder::path::component & name) const
virtual

Test whether the specified folder name is a syntactically a valid name.

Returns
true if the specified folder name is valid, false otherwise

Implements store.

Referenced by POP3Message.

◆ noop()

void noop ( )
virtual

Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer on the server, if one exists).

Implements service.

References POP3Command::NOOP(), and POP3Response::readResponse().

Referenced by POP3Message.


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