|
#include <CImapDS.h>

Public Member Functions | |
| CImapDS () | |
| Default constructor. | |
| virtual | ~CImapDS () |
| Destructor. | |
| void | host (std::string host_name) |
| IMAP host name. | |
| std::string | host () const |
| IMAP host name. | |
| void | user (std::string usr) |
| IMAP user name. | |
| std::string | user () const |
| IMAP user name. | |
| void | password (std::string pwd) |
| IMAP user password. | |
| std::string | password () const |
| IMAP user password. | |
| void | folder (std::string d) |
| IMAP folder name. | |
| const std::string & | folder () const |
| IMAP folder name. | |
| void | messageID (int msgid) |
| int | messageID () const |
| Returns the ID of the message when defined to retrieve one message only. | |
| void | fetchBody (bool fb) |
| bool | fetchBody () const |
| virtual bool | open () |
| void | callback (CProgressCallback cb) |
Protected Attributes | |
| CImapConnect | m_imap |
| IMAP socket connector. | |
| std::string | m_folder |
| IMAP folder name. | |
| std::string | m_user |
| IMAP user name. | |
| std::string | m_password |
| IMAP user password. | |
| bool | m_fetchbody |
| True, if we want to fetch the message headers AND message body. | |
| CProgressCallback | m_callback |
| Internal prograssion callback for open(). | |
| int | m_msgid |
| Internal message ID. | |
Allows to browse the list of messages and folders on IMAP server. It returns a dataset with message headers.
| void sptk::CImapDS::callback | ( | CProgressCallback | cb | ) | [inline] |
Optional callback for the open() method progression.
| cb | CProgressCallback, a callback function |
References m_callback.
| bool sptk::CImapDS::fetchBody | ( | ) | const [inline] |
Returns the current value of the fetch body flag
References m_fetchbody.
| void sptk::CImapDS::fetchBody | ( | bool | fb | ) | [inline] |
Sets the fetch body flag. Should be called prior to open(). If the fetch body flag is not set, only the message headers will be retrieved and that is much faster.
References m_fetchbody.
| void sptk::CImapDS::messageID | ( | int | msgid | ) | [inline] |
| virtual bool sptk::CImapDS::open | ( | ) | [virtual] |
Opens the IMAP server connection with user name and password defined with user() and password(). Scans the IMAP folder defined with folder(), than closes the IMAP server connection.
Reimplemented from sptk::CMemoryDS.