Diffstat (limited to 'noncore/net/mail/imapwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/imapwrapper.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h deleted file mode 100644 index 8f5a2b5..0000000 --- a/noncore/net/mail/imapwrapper.h +++ b/dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | #ifndef __IMAPWRAPPER | ||
2 | #define __IMAPWRAPPER | ||
3 | |||
4 | #include <qlist.h> | ||
5 | #include "mailwrapper.h" | ||
6 | #include "abstractmail.h" | ||
7 | #include <libetpan/clist.h> | ||
8 | |||
9 | struct mailimap; | ||
10 | struct mailimap_body; | ||
11 | struct mailimap_body_type_1part; | ||
12 | struct mailimap_body_type_text; | ||
13 | struct mailimap_body_type_basic; | ||
14 | struct mailimap_body_type_msg; | ||
15 | struct mailimap_body_type_mpart; | ||
16 | struct mailimap_body_fields; | ||
17 | struct mailimap_msg_att; | ||
18 | class encodedString; | ||
19 | |||
20 | class IMAPwrapper : public AbstractMail | ||
21 | { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | IMAPwrapper( IMAPaccount *a ); | ||
25 | virtual ~IMAPwrapper(); | ||
26 | virtual QList<Folder>* listFolders(); | ||
27 | virtual void listMessages(const QString & mailbox,QList<RecMail>&target ); | ||
28 | virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX"); | ||
29 | |||
30 | virtual void deleteMail(const RecMail&mail); | ||
31 | virtual void answeredMail(const RecMail&mail); | ||
32 | virtual int deleteAllMail(const Folder*folder); | ||
33 | |||
34 | virtual RecBody fetchBody(const RecMail&mail); | ||
35 | virtual QString fetchTextPart(const RecMail&mail,const RecPart&part); | ||
36 | virtual encodedString* fetchDecodedPart(const RecMail&mail,const RecPart&part); | ||
37 | virtual encodedString* fetchRawPart(const RecMail&mail,const RecPart&part); | ||
38 | |||
39 | virtual int createMbox(const QString&,const Folder*parentfolder=0,const QString& delemiter="/",bool getsubfolder=false); | ||
40 | virtual int deleteMbox(const Folder*folder); | ||
41 | |||
42 | static void imap_progress( size_t current, size_t maximum ); | ||
43 | |||
44 | protected: | ||
45 | RecMail*parse_list_result(mailimap_msg_att*); | ||
46 | void login(); | ||
47 | void logout(); | ||
48 | |||
49 | virtual QString fetchTextPart(const RecMail&mail,const QValueList<int>&path,bool internal_call=false,const QString&enc=""); | ||
50 | virtual encodedString*fetchRawPart(const RecMail&mail,const QValueList<int>&path,bool internal_call); | ||
51 | |||
52 | void fillSinglePart(RecPart&target_part,mailimap_body_type_1part*Description); | ||
53 | void fillSingleTextPart(RecPart&target_part,mailimap_body_type_text*which); | ||
54 | void fillSingleBasicPart(RecPart&target_part,mailimap_body_type_basic*which); | ||
55 | void fillSingleMsgPart(RecPart&target_part,mailimap_body_type_msg*which); | ||
56 | void fillMultiPart(RecPart&target_part,mailimap_body_type_mpart*which); | ||
57 | void traverseBody(const RecMail&mail,mailimap_body*body,RecBody&target_body,int current_recursion,QValueList<int>recList,int current_count=1); | ||
58 | |||
59 | /* just helpers */ | ||
60 | static void fillBodyFields(RecPart&target_part,mailimap_body_fields*which); | ||
61 | static QStringList address_list_to_stringlist(clist*list); | ||
62 | |||
63 | |||
64 | IMAPaccount *account; | ||
65 | mailimap *m_imap; | ||
66 | }; | ||
67 | |||
68 | #endif | ||