Diffstat (limited to 'noncore/net/mail/libmailwrapper/pop3wrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/pop3wrapper.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.h b/noncore/net/mail/libmailwrapper/pop3wrapper.h index 4e4abad..995bed0 100644 --- a/noncore/net/mail/libmailwrapper/pop3wrapper.h +++ b/noncore/net/mail/libmailwrapper/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 |