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