author | jgf <jgf> | 2003-12-11 17:21:41 (UTC) |
---|---|---|
committer | jgf <jgf> | 2003-12-11 17:21:41 (UTC) |
commit | efa09eadddc16220cc1e8a55da93115538b091bb (patch) (unidiff) | |
tree | f8186f84bd107c388507cc6a69ce5f6ce1aaccc9 /noncore/net/mail/pop3wrapper.h | |
parent | a54fcb766991ed3d813be5f0b066998082378933 (diff) | |
download | opie-efa09eadddc16220cc1e8a55da93115538b091bb.zip opie-efa09eadddc16220cc1e8a55da93115538b091bb.tar.gz opie-efa09eadddc16220cc1e8a55da93115538b091bb.tar.bz2 |
fetchBody in POP3 & weird segfault
Diffstat (limited to 'noncore/net/mail/pop3wrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/pop3wrapper.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/net/mail/pop3wrapper.h b/noncore/net/mail/pop3wrapper.h index 4e4abad..995bed0 100644 --- a/noncore/net/mail/pop3wrapper.h +++ b/noncore/net/mail/pop3wrapper.h | |||
@@ -1,35 +1,38 @@ | |||
1 | #ifndef __POP3WRAPPER | 1 | #ifndef __POP3WRAPPER |
2 | #define __POP3WRAPPER | 2 | #define __POP3WRAPPER |
3 | 3 | ||
4 | #include "mailwrapper.h" | 4 | #include "mailwrapper.h" |
5 | 5 | ||
6 | class RecMail; | 6 | class RecMail; |
7 | class RecBody; | ||
7 | struct mailpop3; | 8 | struct mailpop3; |
8 | 9 | ||
9 | class POP3wrapper : public QObject | 10 | class POP3wrapper : public QObject |
10 | { | 11 | { |
11 | Q_OBJECT | 12 | Q_OBJECT |
12 | 13 | ||
13 | public: | 14 | public: |
14 | POP3wrapper( POP3account *a ); | 15 | POP3wrapper( POP3account *a ); |
15 | virtual ~POP3wrapper(); | 16 | virtual ~POP3wrapper(); |
16 | void listMessages( QList<RecMail> &target ); | 17 | void listMessages( QList<RecMail> &target ); |
18 | RecBody fetchBody( const RecMail &mail ); | ||
17 | static void pop3_progress( size_t current, size_t maximum ); | 19 | static void pop3_progress( size_t current, size_t maximum ); |
18 | 20 | ||
19 | protected: | 21 | protected: |
20 | void login(); | 22 | void login(); |
21 | void logout(); | 23 | void logout(); |
22 | 24 | ||
23 | private: | 25 | private: |
24 | RecMail *parseHeader( const char *header ); | 26 | RecMail *parseHeader( const char *header ); |
25 | QString *parseMailboxList( mailimf_mailbox_list *list ); | 27 | RecBody parseBody( const char *message ); |
26 | QString *parseMailbox( mailimf_mailbox *box ); | 28 | QString parseMailboxList( mailimf_mailbox_list *list ); |
27 | QString *parseGroup( mailimf_group *group ); | 29 | QString parseMailbox( mailimf_mailbox *box ); |
28 | QString *parseAddressList( mailimf_address_list *list ); | 30 | QString parseGroup( mailimf_group *group ); |
29 | QString *parseDateTime( mailimf_date_time *date ); | 31 | QString parseAddressList( mailimf_address_list *list ); |
32 | QString parseDateTime( mailimf_date_time *date ); | ||
30 | POP3account *account; | 33 | POP3account *account; |
31 | mailpop3 *m_pop3; | 34 | mailpop3 *m_pop3; |
32 | 35 | ||
33 | }; | 36 | }; |
34 | 37 | ||
35 | #endif | 38 | #endif |