An IMAP4 FETCH response may optionally contain a FLAGS item, which reports the flags that are set for the specified message. The flags that are specified in IMAP4rev1 include \Seen, \Answered, \Flagged, \Deleted, \Draft, and \Recent.
To check if a flag is set, use the member function Flag(const char*)const and supply the name of the flag as the argument. To iterate over all flags that are present, call the member function NumFlags() to discover how many flags are present, then call Flag(int)const to access each flag in the list.
Public Member Functions | |
| FlagsData () | |
| Default constructor. | |
| FlagsData (const FlagsData &other) | |
| Copy constructor. | |
| virtual | ~FlagsData () |
| Destructor. | |
| FlagsData & | operator= (const FlagsData &other) |
| Assignment operator. | |
| unsigned | NumFlags () const |
| Gets the number of flags. | |
| const char * | Flag (unsigned index) const |
| Gets the flag at the specified position. | |
| bool | Flag (const char *which) const |
| Returns true if the specified flag is present. | |
| void | ImportData (const ListItem *root) |
| Called by the parser to set the data for this object. | |
|
|
Default constructor. |
|
|
Copy constructor.
|
|
|
Destructor. |
|
|
Returns true if the specified flag is present.
|
|
|
Gets the flag at the specified position. The parameter index must satify the constraint index < NumFlags().
|
|
|
Called by the parser to set the data for this object. Only the parser should call this function.
|
|
|
Gets the number of flags.
|
|
|
Assignment operator.
|
Copyright © 2001-2005 Hunny Software, Inc. All rights reserved.