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