VMime
|
Classes | |
class | context |
Public Types | |
enum | DirectoryType { ROOT_DIRECTORY, NEW_DIRECTORY, CUR_DIRECTORY, TMP_DIRECTORY, CONTAINER_DIRECTORY } |
Public Member Functions | |
virtual const string | getName () const =0 |
virtual void | createFolder (const folder::path &path)=0 |
virtual void | destroyFolder (const folder::path &path)=0 |
virtual void | renameFolder (const folder::path &oldPath, const folder::path &newPath)=0 |
virtual bool | folderExists (const folder::path &path) const =0 |
virtual bool | folderHasSubfolders (const folder::path &path) const =0 |
virtual const utility::file::path | folderPathToFileSystemPath (const folder::path &path, const DirectoryType type) const =0 |
virtual const std::vector < folder::path > | listFolders (const folder::path &root, const bool recursive) const =0 |
Static Public Member Functions | |
static shared_ptr< maildirFormat > | detect (shared_ptr< maildirStore > store) |
Protected Member Functions | |
maildirFormat (shared_ptr< context > ctx) | |
shared_ptr< context > | getContext () |
shared_ptr< const context > | getContext () const |
virtual bool | supports () const =0 |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Static Protected Attributes | |
static const utility::file::path::component | TMP_DIR |
static const utility::file::path::component | CUR_DIR |
static const utility::file::path::component | NEW_DIR |
Interface for an object capable of reading a specific Maildir format.
enum DirectoryType |
|
protected |
|
pure virtual |
Create the specified folder.
path | virtual path of the folder |
exceptions::filesystem_exception,invalid_folder_name |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
pure virtual |
Destroy the specified folder.
path | virtual path of the folder |
exceptions::filesystem_exception |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
static |
Try to detect the format of the specified Maildir store.
If the format cannot be detected, a compatible implementation will be returned.
store | of which to detect format |
Referenced by maildirStore::connect().
|
pure virtual |
Test whether the specified folder exists.
path | virtual path of the folder |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
pure virtual |
Test whether the specified folder has subfolders.
path | virtual path of the folder |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
pure virtual |
Returns the directory which represents the specified folder on the file system.
path | virtual path of the folder |
type | type of directory to return |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
protected |
Returns the current context.
Referenced by courierMaildirFormat::listDirectories(), and courierMaildirFormat::supports().
|
protected |
Returns the current context (const version).
|
pure virtual |
Return the name of this Maildir format.
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
pure virtual |
List subfolders in the specified folder.
root | root folder in which to start the search |
recursive | if set to true, all the descendant are returned; if set to false, only direct children are returned. |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
pure virtual |
Rename the specified folder.
oldPath | old virtual path of the folder |
newPath | new virtual path of the folder |
exceptions::filesystem_exception |
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
protectedpure virtual |
Quick checks whether this implementation can read the Maildir format in the specified directory.
Implemented in courierMaildirFormat, and kmailMaildirFormat.
|
staticprotected |
No longer new messages.
|
staticprotected |
Unread messages.
|
staticprotected |
Ensure reliable delivery (not to be listed).