author | alwin <alwin> | 2004-01-04 01:59:09 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-04 01:59:09 (UTC) |
commit | 16d8d88dc09477d871f92d283aa59c8206456a26 (patch) (unidiff) | |
tree | f9aa7a7d6861c81535810092eae8a1f93a9d2358 /noncore/net/mail/genericwrapper.h | |
parent | 6fd109ed595e4e28f49f5de0a26e9f9445e672f6 (diff) | |
download | opie-16d8d88dc09477d871f92d283aa59c8206456a26.zip opie-16d8d88dc09477d871f92d283aa59c8206456a26.tar.gz opie-16d8d88dc09477d871f92d283aa59c8206456a26.tar.bz2 |
moved to shared lib
Diffstat (limited to 'noncore/net/mail/genericwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/genericwrapper.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/noncore/net/mail/genericwrapper.h b/noncore/net/mail/genericwrapper.h deleted file mode 100644 index 32b75c8..0000000 --- a/noncore/net/mail/genericwrapper.h +++ b/dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | #ifndef __GENERIC_WRAPPER_H | ||
2 | #define __GENERIC_WRAPPER_H | ||
3 | |||
4 | #include "abstractmail.h" | ||
5 | #include <qmap.h> | ||
6 | #include <qstring.h> | ||
7 | #include <libetpan/clist.h> | ||
8 | |||
9 | class RecMail; | ||
10 | class RecBody; | ||
11 | class encodedString; | ||
12 | struct mailpop3; | ||
13 | struct mailmessage; | ||
14 | struct mailmime; | ||
15 | struct mailmime_mechanism; | ||
16 | struct mailimf_mailbox_list; | ||
17 | struct mailimf_mailbox; | ||
18 | struct mailimf_date_time; | ||
19 | struct mailimf_group; | ||
20 | struct mailimf_address_list; | ||
21 | struct mailsession; | ||
22 | |||
23 | /* this class hold just the funs shared between | ||
24 | * mbox and pop3 (later mh, too) mail access. | ||
25 | * it is not desigend to make a instance of it! | ||
26 | */ | ||
27 | class Genericwrapper : public AbstractMail | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | Genericwrapper(); | ||
32 | virtual ~Genericwrapper(); | ||
33 | |||
34 | virtual encodedString* fetchDecodedPart(const RecMail&mail,const RecPart&part); | ||
35 | virtual encodedString* fetchRawPart(const RecMail&mail,const RecPart&part); | ||
36 | virtual QString fetchTextPart(const RecMail&mail,const RecPart&part); | ||
37 | virtual void cleanMimeCache(); | ||
38 | |||
39 | protected: | ||
40 | RecMail *parseHeader( const char *header ); | ||
41 | RecBody parseMail( mailmessage * msg ); | ||
42 | QString parseMailboxList( mailimf_mailbox_list *list ); | ||
43 | QString parseMailbox( mailimf_mailbox *box ); | ||
44 | QString parseGroup( mailimf_group *group ); | ||
45 | QString parseAddressList( mailimf_address_list *list ); | ||
46 | QString parseDateTime( mailimf_date_time *date ); | ||
47 | |||
48 | void traverseBody(RecBody&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rek=0,int current_count=1); | ||
49 | static void fillSingleBody(RecPart&target,mailmessage*message,mailmime*mime); | ||
50 | static void fillParameters(RecPart&target,clist*parameters); | ||
51 | static QString getencoding(mailmime_mechanism*aEnc); | ||
52 | virtual void parseList(QList<RecMail> &target,mailsession*session,const QString&mailbox); | ||
53 | |||
54 | QString msgTempName; | ||
55 | unsigned int last_msg_id; | ||
56 | QMap<QString,encodedString*> bodyCache; | ||
57 | }; | ||
58 | |||
59 | #endif | ||