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 @@ #include <qlist.h> #include "mailwrapper.h" struct mailimap; struct mailimap_body_type_1part; struct mailimap_body_type_text; +struct mailimap_body_type_basic; +struct mailimap_body_type_mpart; +struct mailimap_body_fields; struct mailimap_msg_att; class RecMail; class RecBody; +class RecPart; class IMAPwrapper : public QObject { Q_OBJECT public: @@ -24,14 +28,23 @@ public: static void imap_progress( size_t current, size_t maximum ); protected: RecMail*parse_list_result(mailimap_msg_att*); void login(); void logout(); + void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); - void fillPlainBody(const RecMail&mail,RecBody&target_body, mailimap_body_type_text * text_body); + void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion); + + void fillPlainBody(const RecMail&mail,RecBody&target_body); + void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); + void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); + void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); + + /* just helpers */ + static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); static QStringList address_list_to_stringlist(clist*list); private: IMAPaccount *account; mailimap *m_imap; }; |