author | alwin <alwin> | 2003-12-30 00:14:47 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-30 00:14:47 (UTC) |
commit | b636d3d91e8456b22bc450b3d7f3a862b7f615a9 (patch) (unidiff) | |
tree | 2d7fe53175453a28e4e1d08496f6f611221c1936 /noncore/net/mail/pop3wrapper.h | |
parent | 2ecab614a6b91658b1608c62134cd14e257e55b7 (diff) | |
download | opie-b636d3d91e8456b22bc450b3d7f3a862b7f615a9.zip opie-b636d3d91e8456b22bc450b3d7f3a862b7f615a9.tar.gz opie-b636d3d91e8456b22bc450b3d7f3a862b7f615a9.tar.bz2 |
re-worked pop3 (use the more generic interface)
shared some more functions between mbox and pop3
Diffstat (limited to 'noncore/net/mail/pop3wrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/pop3wrapper.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/mail/pop3wrapper.h b/noncore/net/mail/pop3wrapper.h index 2efffdd..b3a42be 100644 --- a/noncore/net/mail/pop3wrapper.h +++ b/noncore/net/mail/pop3wrapper.h | |||
@@ -1,34 +1,37 @@ | |||
1 | #ifndef __POP3WRAPPER | 1 | #ifndef __POP3WRAPPER |
2 | #define __POP3WRAPPER | 2 | #define __POP3WRAPPER |
3 | 3 | ||
4 | #include "mailwrapper.h" | 4 | #include "mailwrapper.h" |
5 | #include "genericwrapper.h" | 5 | #include "genericwrapper.h" |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | 7 | ||
8 | struct mailstorage; | ||
9 | struct mailfolder; | ||
8 | 10 | ||
9 | class POP3wrapper : public Genericwrapper | 11 | class POP3wrapper : public Genericwrapper |
10 | { | 12 | { |
11 | Q_OBJECT | 13 | Q_OBJECT |
12 | 14 | ||
13 | public: | 15 | public: |
14 | POP3wrapper( POP3account *a ); | 16 | POP3wrapper( POP3account *a ); |
15 | virtual ~POP3wrapper(); | 17 | virtual ~POP3wrapper(); |
16 | /* mailbox will be ignored */ | 18 | /* mailbox will be ignored */ |
17 | virtual void listMessages(const QString & mailbox, QList<RecMail> &target ); | 19 | virtual void listMessages(const QString & mailbox, QList<RecMail> &target ); |
18 | virtual QList<Folder>* listFolders(); | 20 | virtual QList<Folder>* listFolders(); |
19 | 21 | ||
20 | virtual void deleteMail(const RecMail&mail); | 22 | virtual void deleteMail(const RecMail&mail); |
21 | virtual void answeredMail(const RecMail&mail); | 23 | virtual void answeredMail(const RecMail&mail); |
22 | virtual int deleteAllMail(const Folder*); | 24 | virtual int deleteAllMail(const Folder*); |
23 | 25 | ||
24 | virtual RecBody fetchBody( const RecMail &mail ); | 26 | virtual RecBody fetchBody( const RecMail &mail ); |
25 | static void pop3_progress( size_t current, size_t maximum ); | 27 | static void pop3_progress( size_t current, size_t maximum ); |
26 | 28 | ||
27 | protected: | 29 | protected: |
28 | void login(); | 30 | void login(); |
29 | void logout(); | 31 | void logout(); |
30 | POP3account *account; | 32 | POP3account *account; |
31 | mailpop3 *m_pop3; | 33 | mailstorage*m_pop3; |
34 | mailfolder*m_folder; | ||
32 | }; | 35 | }; |
33 | 36 | ||
34 | #endif | 37 | #endif |