From b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 09 Dec 2003 01:30:26 +0000 Subject: - interface change for imapwrapper - beginning of parsing the body-structure of mails not just simple return the whole body (this moment commented out 'cause it's only working for text/plain type mails) --- (limited to 'noncore/net/mail/imapwrapper.h') diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h index 65c36e0..b02d26d 100644 --- a/noncore/net/mail/imapwrapper.h +++ b/noncore/net/mail/imapwrapper.h @@ -2,7 +2,9 @@ #define __IMAPWRAPPER #include "mailwrapper.h" -#include + +struct mailimap; +struct mailimap_body_type_1part; class IMAPwrapper : public QObject { @@ -10,16 +12,22 @@ class IMAPwrapper : public QObject public: IMAPwrapper( IMAPaccount *a ); + virtual ~IMAPwrapper(); QList* listFolders(); void listMessages(const QString & mailbox,Maillist&target ); - QString fetchBody(const QString & mailbox,const RecMail&mail); + QString fetchBody(const RecMail&mail); + static void imap_progress( size_t current, size_t maximum ); protected: RecMail*parse_list_result(mailimap_msg_att*); + void login(); + void logout(); + QString searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription); + QString getPlainBody(const RecMail&mail); private: IMAPaccount *account; - + mailimap *m_imap; }; #endif -- cgit v0.9.0.2