VMime
IMAPFolderStatus Class Reference
Inheritance diagram for IMAPFolderStatus:
Collaboration diagram for IMAPFolderStatus:

Public Member Functions

 IMAPFolderStatus ()
 
 IMAPFolderStatus (const IMAPFolderStatus &other)
 
unsigned int getMessageCount () const
 
unsigned int getUnseenCount () const
 
shared_ptr< folderStatusclone () const
 
unsigned int getRecentCount () const
 
vmime_uint32 getUIDValidity () const
 
vmime_uint32 getUIDNext () const
 
vmime_uint64 getHighestModSeq () const
 
bool updateFromResponse (const IMAPParser::mailbox_data *resp)
 
bool updateFromResponse (const IMAPParser::resp_text_code *resp)
 

Additional Inherited Members

- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

Holds the status of an IMAP folder.

Constructor & Destructor Documentation

IMAPFolderStatus ( const IMAPFolderStatus other)

Member Function Documentation

shared_ptr< folderStatus > clone ( ) const
virtual

Clones this object.

Returns
a copy of this object

Implements folderStatus.

vmime_uint64 getHighestModSeq ( ) const

Returns the highest modification sequence of all messages in the folder, or 0 if not available for this folder, or not supported by the server.

The server must support the CONDSTORE extension for this to be available.

Returns
highest modification sequence
unsigned int getMessageCount ( ) const
virtual

Returns the total number of messages in the folder.

Returns
number of messages

Implements folderStatus.

unsigned int getRecentCount ( ) const

Returns the the number of messages with the Recent flag set.

Returns
number of messages flagged Recent
vmime_uint32 getUIDNext ( ) const

Returns the UID value that will be assigned to a new message in the folder.

If the server does not support the UIDPLUS extension, it will return 0.

Returns
UID of the next message
vmime_uint32 getUIDValidity ( ) const

Returns the UID validity of the folder for the current session.

If the server is capable of persisting UIDs accross sessions, this value should never change for a folder.

Returns
UID validity of the folder
unsigned int getUnseenCount ( ) const
virtual

Returns the number of unseen messages in the folder.

Returns
number of unseen messages

Implements folderStatus.

bool updateFromResponse ( const IMAPParser::mailbox_data *  resp)

Reads the folder status from the specified IMAP response.

Parameters
respparsed IMAP response
Returns
true if the status changed, or false otherwise

References vmime::count().

bool updateFromResponse ( const IMAPParser::resp_text_code *  resp)

Reads the folder status from the specified IMAP response.

Parameters
respparsed IMAP response
Returns
true if the status changed, or false otherwise

The documentation for this class was generated from the following files: