VMime
|
Public Types | |
enum | Types { TYPE_CONTAINS_FOLDERS = (1 << 0), TYPE_CONTAINS_MESSAGES = (1 << 1) } |
enum | Flags { FLAG_HAS_CHILDREN = (1 << 0), FLAG_NO_OPEN = (1 << 1) } |
enum | SpecialUses { SPECIALUSE_NONE, SPECIALUSE_ALL, SPECIALUSE_ARCHIVE, SPECIALUSE_DRAFTS, SPECIALUSE_FLAGGED, SPECIALUSE_JUNK, SPECIALUSE_SENT, SPECIALUSE_TRASH, SPECIALUSE_IMPORTANT } |
Public Member Functions | |
folderAttributes () | |
folderAttributes (const folderAttributes &attribs) | |
int | getType () const |
void | setType (const int type) |
int | getSpecialUse () const |
void | setSpecialUse (const int use) |
int | getFlags () const |
void | setFlags (const int flags) |
bool | hasFlag (const int flag) |
const std::vector< string > | getUserFlags () const |
void | setUserFlags (const std::vector< string > &flags) |
bool | hasUserFlag (const string &flag) |
Additional Inherited Members | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Holds a set of attributes for a folder.
enum Flags |
enum SpecialUses |
Folder special uses.
Not all protocols support this. At the current time, only IMAP supports this, if the server has the SPECIAL-USE capability.
enum Types |
folderAttributes | ( | ) |
Construct a new folderAttributes object with the default set of attributes.
folderAttributes | ( | const folderAttributes & | attribs | ) |
Construct a new folderAttributes object by copying an existing object.
attribs | object to copy |
int getFlags | ( | ) | const |
Return the standard (non-user) flags of the folder.
Referenced by folder::getFlags().
int getSpecialUse | ( | ) | const |
Return the special use of the folder.
Not all protocols support this. At the current time, only IMAP supports this, if the server has the SPECIAL-USE capability.
Referenced by IMAPFolder::create().
int getType | ( | ) | const |
Return the type of the folder.
Referenced by IMAPFolder::create(), and folder::getType().
const std::vector< string > getUserFlags | ( | ) | const |
Set the user-defined flags of the folder.
bool hasFlag | ( | const int | flag | ) |
Return whether the specified folder flag(s) is/are set.
flag | combination of one ore more folder flags (see folderAttributes::Flags enum) |
bool hasUserFlag | ( | const string & | flag | ) |
Return whether the specified user-defined flag is set.
void setFlags | ( | const int | flags | ) |
Set the standard (non-user) flags of the folder.
type | combination of one ore more folder flags (see folderAttributes::Flags enum) |
Referenced by POP3Folder::getAttributes(), maildirFolder::getAttributes(), and IMAPFolder::getAttributes().
void setSpecialUse | ( | const int | use | ) |
Set the special use of the folder.
Not all protocols support this. At the current time, only IMAP supports this, if the server has the SPECIAL-USE capability.
use | a value which indicates a special use (see folderAttributes::SpecialUses enum) |
void setType | ( | const int | type | ) |
Set the type of the folder.
type | combination of one ore more folder types (see folderAttributes::Types enum) |
Referenced by POP3Folder::getAttributes(), maildirFolder::getAttributes(), and IMAPFolder::getAttributes().
void setUserFlags | ( | const std::vector< string > & | flags | ) |
Set the user-defined flags of the folder.
flags | a list of user-defined flags |