|
VMime
|
#include <POP3Store.hpp>


Public Member Functions | |
| POP3Store (shared_ptr< session > sess, shared_ptr< security::authenticator > auth, const bool secured=false) | |
| ~POP3Store () | |
| const string | getProtocolName () const |
| shared_ptr< folder > | getDefaultFolder () |
| shared_ptr< folder > | getRootFolder () |
| shared_ptr< folder > | getFolder (const folder::path &path) |
| bool | isValidFolderName (const folder::path::component &name) const |
| const serviceInfos & | getInfos () const |
| void | connect () |
| bool | isConnected () const |
| void | disconnect () |
| void | noop () |
| int | getCapabilities () const |
| bool | isSecuredConnection () const |
| shared_ptr< connectionInfos > | getConnectionInfos () const |
| shared_ptr< POP3Connection > | getConnection () |
| bool | isPOP3S () const |
Public Member Functions inherited from store | |
| virtual shared_ptr< folder > | getDefaultFolder ()=0 |
| virtual shared_ptr< folder > | getRootFolder ()=0 |
| virtual shared_ptr< folder > | getFolder (const folder::path &path)=0 |
| virtual bool | isValidFolderName (const folder::path::component &name) const =0 |
| virtual int | getCapabilities () const =0 |
| Type | getType () const |
Public Member Functions inherited from service | |
| virtual | ~service () |
| virtual Type | getType () const =0 |
| virtual const string | getProtocolName () const =0 |
| shared_ptr< const session > | getSession () const |
| shared_ptr< session > | getSession () |
| virtual const serviceInfos & | getInfos () const =0 |
| virtual void | connect ()=0 |
| virtual void | disconnect ()=0 |
| virtual bool | isConnected () const =0 |
| virtual void | noop ()=0 |
| shared_ptr< const security::authenticator > | getAuthenticator () const |
| shared_ptr< security::authenticator > | getAuthenticator () |
| void | setAuthenticator (shared_ptr< security::authenticator > auth) |
| void | setCertificateVerifier (shared_ptr< security::cert::certificateVerifier > cv) |
| shared_ptr< security::cert::certificateVerifier > | getCertificateVerifier () |
| void | setSocketFactory (shared_ptr< socketFactory > sf) |
| shared_ptr< socketFactory > | getSocketFactory () |
| void | setTimeoutHandlerFactory (shared_ptr< timeoutHandlerFactory > thf) |
| shared_ptr< timeoutHandlerFactory > | getTimeoutHandlerFactory () |
| void | setTracerFactory (shared_ptr< tracerFactory > tf) |
| shared_ptr< tracerFactory > | getTracerFactory () |
| template<typename TYPE > | |
| void | setProperty (const string &name, const TYPE &value) |
| virtual bool | isSecuredConnection () const =0 |
| virtual shared_ptr< connectionInfos > | getConnectionInfos () const =0 |
Static Public Member Functions | |
| static const serviceInfos & | getInfosInstance () |
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 &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
POP3 store service.
| POP3Store | ( | shared_ptr< session > | sess, |
| shared_ptr< security::authenticator > | auth, | ||
| const bool | secured = false |
||
| ) |
| ~POP3Store | ( | ) |
References POP3Store::disconnect(), and POP3Store::isConnected().
|
virtual |
Connect to service.
Implements service.
References service::getAuthenticator(), and POP3Store::isConnected().
|
virtual |
Disconnect from service.
Implements service.
References POP3Store::isConnected().
Referenced by POP3Store::~POP3Store().
|
virtual |
Return the features supported by this service.
This is a combination of store::CAPABILITY_xxx flags.
Implements store.
References store::CAPABILITY_DELETE_MESSAGE.
| shared_ptr< POP3Connection > getConnection | ( | ) |
|
virtual |
|
virtual |
Return the default folder.
This is protocol dependent and usually is the INBOX folder.
Implements store.
References POP3Store::isConnected(), and POP3Store::POP3Folder.
|
virtual |
Return the folder specified by the path.
| path | absolute folder path |
Implements store.
References POP3Store::isConnected(), and POP3Store::POP3Folder.
|
virtual |
|
static |
|
virtual |
|
virtual |
Return the root folder.
This is protocol dependent and usually is the user's mail drop root folder.
Implements store.
References POP3Store::isConnected(), and POP3Store::POP3Folder.
|
virtual |
Test whether this service is connected.
Implements service.
Referenced by POP3Store::connect(), POP3Store::disconnect(), POP3Store::getDefaultFolder(), POP3Store::getFolder(), POP3Store::getRootFolder(), and POP3Store::~POP3Store().
| bool isPOP3S | ( | ) | const |
|
virtual |
Check whether the connection is secured.
Implements service.
|
virtual |
Test whether the specified folder name is a syntactically a valid name.
Implements store.
|
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().