|
VMime
|
#include <IMAPStore.hpp>


Static Public Member Functions | |
| static const serviceInfos & | getInfosInstance () |
Protected Member Functions | |
| shared_ptr< IMAPConnection > | connection () |
| void | registerFolder (IMAPFolder *folder) |
| void | unregisterFolder (IMAPFolder *folder) |
| 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 () |
Protected Attributes | |
| shared_ptr< IMAPConnection > | m_connection |
| std::list< IMAPFolder * > | m_folders |
| const bool | m_isIMAPS |
Static Protected Attributes | |
| static IMAPServiceInfos | sm_infos |
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 } |
IMAP store service.
| IMAPStore | ( | shared_ptr< session > | sess, |
| shared_ptr< security::authenticator > | auth, | ||
| const bool | secured = false ) |
References getInfosInstance(), m_connection, m_isIMAPS, and store::store().
Referenced by IMAPConnection, and IMAPSStore::IMAPSStore().
| ~IMAPStore | ( | ) |
References disconnect(), and isConnected().
|
virtual |
Connect to service.
Implements service.
References vmime::dynamicCast(), service::getAuthenticator(), isConnected(), and m_connection.
Referenced by IMAPConnection.
|
protected |
References m_connection.
|
virtual |
Disconnect from service.
Implements service.
References isConnected(), m_connection, and m_folders.
Referenced by IMAPConnection, and ~IMAPStore().
|
virtual |
Return the features supported by this service.
This is a combination of store::CAPABILITY_xxx flags.
Implements store.
References store::CAPABILITY_ADD_MESSAGE, store::CAPABILITY_COPY_MESSAGE, store::CAPABILITY_CREATE_FOLDER, store::CAPABILITY_DELETE_MESSAGE, store::CAPABILITY_EXTRACT_PART, store::CAPABILITY_MESSAGE_FLAGS, store::CAPABILITY_PARTIAL_FETCH, and store::CAPABILITY_RENAME_FOLDER.
Referenced by IMAPConnection.
| shared_ptr< IMAPConnection > getConnection | ( | ) |
References m_connection.
Referenced by IMAPConnection.
|
virtual |
Get information about the connection.
Implements service.
References m_connection.
Referenced by IMAPConnection.
|
virtual |
Return the default folder.
This is protocol dependent and usually is the INBOX folder.
Implements store.
References vmime::dynamicCast(), IMAPFolder, and isConnected().
Referenced by IMAPConnection.
|
virtual |
Return the folder specified by the path.
| path | absolute folder path |
Implements store.
References vmime::dynamicCast(), IMAPFolder, and isConnected().
Referenced by IMAPConnection.
|
virtual |
Return information about this service.
Implements service.
References sm_infos.
Referenced by IMAPConnection.
|
static |
References sm_infos.
Referenced by IMAPConnection, and IMAPStore().
|
virtual |
Return the protocol name of this service.
Implements service.
Referenced by IMAPConnection.
|
virtual |
Return the root folder.
This is protocol dependent and usually is the user's mail drop root folder.
Implements store.
References vmime::dynamicCast(), IMAPFolder, and isConnected().
Referenced by IMAPConnection.
|
virtual |
Test whether this service is connected.
Implements service.
References m_connection.
Referenced by connect(), disconnect(), getDefaultFolder(), getFolder(), getRootFolder(), IMAPConnection, noop(), and ~IMAPStore().
| bool isIMAPS | ( | ) | const |
References m_isIMAPS.
Referenced by IMAPConnection.
|
virtual |
Check whether the connection is secured.
Implements service.
References m_connection.
Referenced by IMAPConnection.
|
virtual |
Test whether the specified folder name is a syntactically a valid name.
Implements store.
Referenced by IMAPConnection.
|
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 isConnected(), m_connection, m_folders, and IMAPCommand::NOOP().
Referenced by IMAPConnection.
|
protected |
References IMAPFolder, and m_folders.
|
protected |
References IMAPFolder, and m_folders.
|
protected |
Referenced by connect(), connection(), disconnect(), getConnection(), getConnectionInfos(), IMAPStore(), isConnected(), isSecuredConnection(), and noop().
|
protected |
Referenced by disconnect(), noop(), registerFolder(), and unregisterFolder().
|
protected |
Referenced by IMAPStore(), and isIMAPS().
|
staticprotected |
Referenced by getInfos(), and getInfosInstance().