Diffstat (limited to 'noncore/net/mail/libmailwrapper/imapwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.h b/noncore/net/mail/libmailwrapper/imapwrapper.h index 65c36e0..b02d26d 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.h +++ b/noncore/net/mail/libmailwrapper/imapwrapper.h | |||
@@ -1,25 +1,33 @@ | |||
1 | #ifndef __IMAPWRAPPER | 1 | #ifndef __IMAPWRAPPER |
2 | #define __IMAPWRAPPER | 2 | #define __IMAPWRAPPER |
3 | 3 | ||
4 | #include "mailwrapper.h" | 4 | #include "mailwrapper.h" |
5 | #include <libetpan/mailimap.h> | 5 | |
6 | struct mailimap; | ||
7 | struct mailimap_body_type_1part; | ||
6 | 8 | ||
7 | class IMAPwrapper : public QObject | 9 | class IMAPwrapper : public QObject |
8 | { | 10 | { |
9 | Q_OBJECT | 11 | Q_OBJECT |
10 | 12 | ||
11 | public: | 13 | public: |
12 | IMAPwrapper( IMAPaccount *a ); | 14 | IMAPwrapper( IMAPaccount *a ); |
15 | virtual ~IMAPwrapper(); | ||
13 | QList<IMAPFolder>* listFolders(); | 16 | QList<IMAPFolder>* listFolders(); |
14 | void listMessages(const QString & mailbox,Maillist&target ); | 17 | void listMessages(const QString & mailbox,Maillist&target ); |
15 | QString fetchBody(const QString & mailbox,const RecMail&mail); | 18 | QString fetchBody(const RecMail&mail); |
19 | static void imap_progress( size_t current, size_t maximum ); | ||
16 | 20 | ||
17 | protected: | 21 | protected: |
18 | RecMail*parse_list_result(mailimap_msg_att*); | 22 | RecMail*parse_list_result(mailimap_msg_att*); |
23 | void login(); | ||
24 | void logout(); | ||
25 | QString searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription); | ||
26 | QString getPlainBody(const RecMail&mail); | ||
19 | 27 | ||
20 | private: | 28 | private: |
21 | IMAPaccount *account; | 29 | IMAPaccount *account; |
22 | 30 | mailimap *m_imap; | |
23 | }; | 31 | }; |
24 | 32 | ||
25 | #endif | 33 | #endif |