Diffstat (limited to 'noncore/net/mail/imapwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/imapwrapper.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h index 90f3004..f809edb 100644 --- a/noncore/net/mail/imapwrapper.h +++ b/noncore/net/mail/imapwrapper.h | |||
@@ -4,15 +4,19 @@ | |||
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_body_type_basic; | ||
11 | struct mailimap_body_type_mpart; | ||
12 | struct mailimap_body_fields; | ||
10 | struct mailimap_msg_att; | 13 | struct mailimap_msg_att; |
11 | class RecMail; | 14 | class RecMail; |
12 | class RecBody; | 15 | class RecBody; |
16 | class RecPart; | ||
13 | 17 | ||
14 | class IMAPwrapper : public QObject | 18 | class IMAPwrapper : public QObject |
15 | { | 19 | { |
16 | Q_OBJECT | 20 | Q_OBJECT |
17 | 21 | ||
18 | public: | 22 | public: |
@@ -24,14 +28,23 @@ public: | |||
24 | static void imap_progress( size_t current, size_t maximum ); | 28 | static void imap_progress( size_t current, size_t maximum ); |
25 | 29 | ||
26 | protected: | 30 | protected: |
27 | RecMail*parse_list_result(mailimap_msg_att*); | 31 | RecMail*parse_list_result(mailimap_msg_att*); |
28 | void login(); | 32 | void login(); |
29 | void logout(); | 33 | void logout(); |
34 | |||
30 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); | 35 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); |
31 | void fillPlainBody(const RecMail&mail,RecBody&target_body, mailimap_body_type_text * text_body); | 36 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion); |
37 | |||
38 | void fillPlainBody(const RecMail&mail,RecBody&target_body); | ||
39 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); | ||
40 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); | ||
41 | void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); | ||
42 | |||
43 | /* just helpers */ | ||
44 | static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); | ||
32 | static QStringList address_list_to_stringlist(clist*list); | 45 | static QStringList address_list_to_stringlist(clist*list); |
33 | 46 | ||
34 | private: | 47 | private: |
35 | IMAPaccount *account; | 48 | IMAPaccount *account; |
36 | mailimap *m_imap; | 49 | mailimap *m_imap; |
37 | }; | 50 | }; |