Diffstat (limited to 'kmicromail/libmailwrapper/genericwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/genericwrapper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmicromail/libmailwrapper/genericwrapper.h b/kmicromail/libmailwrapper/genericwrapper.h index 8be9212..235e116 100644 --- a/kmicromail/libmailwrapper/genericwrapper.h +++ b/kmicromail/libmailwrapper/genericwrapper.h | |||
@@ -1,16 +1,17 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | ||
1 | #ifndef __GENERIC_WRAPPER_H | 2 | #ifndef __GENERIC_WRAPPER_H |
2 | #define __GENERIC_WRAPPER_H | 3 | #define __GENERIC_WRAPPER_H |
3 | 4 | ||
4 | #include "abstractmail.h" | 5 | #include "abstractmail.h" |
5 | #include <qmap.h> | 6 | #include <qmap.h> |
6 | #include <qstring.h> | 7 | #include <qstring.h> |
7 | #include <libetpan/clist.h> | 8 | #include <libetpan/clist.h> |
8 | 9 | ||
9 | class RecMail; | 10 | class RecMail; |
10 | class RecBody; | 11 | class RecBody; |
11 | class encodedString; | 12 | class encodedString; |
12 | struct mailpop3; | 13 | struct mailpop3; |
13 | struct mailmessage; | 14 | struct mailmessage; |
14 | struct mailmime; | 15 | struct mailmime; |
15 | struct mailmime_mechanism; | 16 | struct mailmime_mechanism; |
16 | struct mailimf_mailbox_list; | 17 | struct mailimf_mailbox_list; |
@@ -41,27 +42,27 @@ public: | |||
41 | virtual int deleteMbox(const Opie::Core::OSmartPointer<Folder>&){return 1;} | 42 | virtual int deleteMbox(const Opie::Core::OSmartPointer<Folder>&){return 1;} |
42 | virtual void logout(){}; | 43 | virtual void logout(){}; |
43 | virtual void storeMessage(const char*msg,size_t length, const QString&folder){}; | 44 | virtual void storeMessage(const char*msg,size_t length, const QString&folder){}; |
44 | 45 | ||
45 | protected: | 46 | protected: |
46 | RecBodyP parseMail( mailmessage * msg ); | 47 | RecBodyP parseMail( mailmessage * msg ); |
47 | QString parseMailboxList( mailimf_mailbox_list *list ); | 48 | QString parseMailboxList( mailimf_mailbox_list *list ); |
48 | QString parseMailbox( mailimf_mailbox *box ); | 49 | QString parseMailbox( mailimf_mailbox *box ); |
49 | QString parseGroup( mailimf_group *group ); | 50 | QString parseGroup( mailimf_group *group ); |
50 | QString parseAddressList( mailimf_address_list *list ); | 51 | QString parseAddressList( mailimf_address_list *list ); |
51 | QString parseDateTime( mailimf_date_time *date ); | 52 | QString parseDateTime( mailimf_date_time *date ); |
52 | 53 | ||
53 | void traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rek=0,int current_count=1); | 54 | void traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rek=0,int current_count=1); |
54 | static void fillSingleBody(RecPartP&target,mailmessage*message,mailmime*mime); | 55 | static void fillSingleBody(RecPartP&target,mailmessage*message,mailmime*mime); |
55 | static void fillParameters(RecPartP&target,clist*parameters); | 56 | static void fillParameters(RecPartP&target,clist*parameters); |
56 | static QString getencoding(mailmime_mechanism*aEnc); | 57 | static QString getencoding(mailmime_mechanism*aEnc); |
57 | virtual void parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to=false); | 58 | virtual void parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to=false, int maxSizeInKb = 0); |
58 | QStringList parseInreplies(mailimf_in_reply_to * in_replies); | 59 | QStringList parseInreplies(mailimf_in_reply_to * in_replies); |
59 | 60 | ||
60 | QString msgTempName; | 61 | QString msgTempName; |
61 | unsigned int last_msg_id; | 62 | unsigned int last_msg_id; |
62 | QMap<QString,encodedString*> bodyCache; | 63 | QMap<QString,encodedString*> bodyCache; |
63 | mailstorage * m_storage; | 64 | mailstorage * m_storage; |
64 | mailfolder*m_folder; | 65 | mailfolder*m_folder; |
65 | }; | 66 | }; |
66 | 67 | ||
67 | #endif | 68 | #endif |