Diffstat (limited to 'noncore/net/mail/libmailwrapper/imapwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.h b/noncore/net/mail/libmailwrapper/imapwrapper.h index 5ea45f3..95de215 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.h +++ b/noncore/net/mail/libmailwrapper/imapwrapper.h | |||
@@ -5,12 +5,13 @@ | |||
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; | 10 | struct mailimap_body_type_basic; |
11 | struct mailimap_body_type_msg; | ||
11 | struct mailimap_body_type_mpart; | 12 | struct mailimap_body_type_mpart; |
12 | struct mailimap_body_fields; | 13 | struct mailimap_body_fields; |
13 | struct mailimap_msg_att; | 14 | struct mailimap_msg_att; |
14 | class RecMail; | 15 | class RecMail; |
15 | class RecBody; | 16 | class RecBody; |
16 | class RecPart; | 17 | class RecPart; |
@@ -22,27 +23,28 @@ class IMAPwrapper : public QObject | |||
22 | public: | 23 | public: |
23 | IMAPwrapper( IMAPaccount *a ); | 24 | IMAPwrapper( IMAPaccount *a ); |
24 | virtual ~IMAPwrapper(); | 25 | virtual ~IMAPwrapper(); |
25 | QList<IMAPFolder>* listFolders(); | 26 | QList<IMAPFolder>* listFolders(); |
26 | void listMessages(const QString & mailbox,QList<RecMail>&target ); | 27 | void listMessages(const QString & mailbox,QList<RecMail>&target ); |
27 | RecBody fetchBody(const RecMail&mail); | 28 | RecBody fetchBody(const RecMail&mail); |
28 | QString fetchPart(const RecMail&mail,QValueList<int>&path,bool internal_call=false); | 29 | QString fetchPart(const RecMail&mail,const QValueList<int>&path,bool internal_call=false); |
30 | QString fetchPart(const RecMail&mail,const RecPart&part); | ||
29 | static void imap_progress( size_t current, size_t maximum ); | 31 | static void imap_progress( size_t current, size_t maximum ); |
30 | 32 | ||
31 | protected: | 33 | protected: |
32 | RecMail*parse_list_result(mailimap_msg_att*); | 34 | RecMail*parse_list_result(mailimap_msg_att*); |
33 | void login(); | 35 | void login(); |
34 | void logout(); | 36 | void logout(); |
35 | 37 | ||
36 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); | 38 | void searchBodyText(const RecMail&mail,mailimap_body_type_1part*mailDescription,RecBody&target_body); |
37 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion=0,QValueList<int>recList=QValueList<int>()); | 39 | void searchBodyText(const RecMail&mail,mailimap_body_type_mpart*mailDescription,RecBody&target_body,int current_recursion=0,QValueList<int>recList=QValueList<int>()); |
38 | 40 | ||
39 | void fillPlainBody(const RecMail&mail,RecBody&target_body); | ||
40 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); | 41 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); |
41 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); | 42 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); |
42 | void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); | 43 | void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); |
44 | void fillSingleMsgPart(RecPart&target_part,mailimap_body_type_msg*which); | ||
43 | 45 | ||
44 | /* just helpers */ | 46 | /* just helpers */ |
45 | static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); | 47 | static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); |
46 | static QStringList address_list_to_stringlist(clist*list); | 48 | static QStringList address_list_to_stringlist(clist*list); |
47 | 49 | ||
48 | private: | 50 | private: |