Diffstat (limited to 'noncore/net/mail/imapwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/imapwrapper.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h index 768a517..aeebda8 100644 --- a/noncore/net/mail/imapwrapper.h +++ b/noncore/net/mail/imapwrapper.h | |||
@@ -10,34 +10,40 @@ struct mailimap_body_type_1part; | |||
10 | struct mailimap_body_type_text; | 10 | struct mailimap_body_type_text; |
11 | struct mailimap_body_type_basic; | 11 | struct mailimap_body_type_basic; |
12 | struct mailimap_body_type_msg; | 12 | struct mailimap_body_type_msg; |
13 | struct mailimap_body_type_mpart; | 13 | struct mailimap_body_type_mpart; |
14 | struct mailimap_body_fields; | 14 | struct mailimap_body_fields; |
15 | struct mailimap_msg_att; | 15 | struct mailimap_msg_att; |
16 | class encodedString; | ||
16 | 17 | ||
17 | class IMAPwrapper : public AbstractMail | 18 | class IMAPwrapper : public AbstractMail |
18 | { | 19 | { |
19 | Q_OBJECT | 20 | Q_OBJECT |
20 | public: | 21 | public: |
21 | IMAPwrapper( IMAPaccount *a ); | 22 | IMAPwrapper( IMAPaccount *a ); |
22 | virtual ~IMAPwrapper(); | 23 | virtual ~IMAPwrapper(); |
23 | virtual QList<Folder>* listFolders(); | 24 | virtual QList<Folder>* listFolders(); |
24 | virtual void listMessages(const QString & mailbox,QList<RecMail>&target ); | 25 | virtual void listMessages(const QString & mailbox,QList<RecMail>&target ); |
25 | virtual RecBody fetchBody(const RecMail&mail); | 26 | |
26 | virtual QString fetchPart(const RecMail&mail,const RecPart&part); | ||
27 | virtual void deleteMail(const RecMail&mail); | 27 | virtual void deleteMail(const RecMail&mail); |
28 | virtual void answeredMail(const RecMail&mail); | 28 | virtual void answeredMail(const RecMail&mail); |
29 | 29 | ||
30 | virtual RecBody fetchBody(const RecMail&mail); | ||
31 | virtual QString fetchTextPart(const RecMail&mail,const RecPart&part); | ||
32 | virtual encodedString* fetchDecodedPart(const RecMail&mail,const RecPart&part); | ||
33 | virtual encodedString* fetchRawPart(const RecMail&mail,const RecPart&part); | ||
34 | |||
30 | static void imap_progress( size_t current, size_t maximum ); | 35 | static void imap_progress( size_t current, size_t maximum ); |
31 | 36 | ||
32 | protected: | 37 | protected: |
33 | RecMail*parse_list_result(mailimap_msg_att*); | 38 | RecMail*parse_list_result(mailimap_msg_att*); |
34 | void login(); | 39 | void login(); |
35 | void logout(); | 40 | void logout(); |
36 | 41 | ||
37 | virtual QString fetchPart(const RecMail&mail,const QValueList<int>&path,bool internal_call=false,const QString&enc=""); | 42 | virtual QString fetchTextPart(const RecMail&mail,const QValueList<int>&path,bool internal_call=false,const QString&enc=""); |
43 | virtual encodedString*fetchRawPart(const RecMail&mail,const QValueList<int>&path,bool internal_call); | ||
38 | 44 | ||
39 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); | 45 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); |
40 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion=0,QValueList<int>recList=QValueList<int>()); | 46 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion=0,QValueList<int>recList=QValueList<int>()); |
41 | 47 | ||
42 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); | 48 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); |
43 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); | 49 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); |