Diffstat (limited to 'kmicromail/libmailwrapper/nntpwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/nntpwrapper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmicromail/libmailwrapper/nntpwrapper.h b/kmicromail/libmailwrapper/nntpwrapper.h index 2fb82f2..5d4e5ce 100644 --- a/kmicromail/libmailwrapper/nntpwrapper.h +++ b/kmicromail/libmailwrapper/nntpwrapper.h | |||
@@ -1,47 +1,48 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | ||
1 | #ifndef __NNTPWRAPPER | 2 | #ifndef __NNTPWRAPPER |
2 | #define __NNTPWRAPPER | 3 | #define __NNTPWRAPPER |
3 | 4 | ||
4 | #include "mailwrapper.h" | 5 | #include "mailwrapper.h" |
5 | #include "genericwrapper.h" | 6 | #include "genericwrapper.h" |
6 | #include <qstring.h> | 7 | #include <qstring.h> |
7 | #include <libetpan/clist.h> | 8 | #include <libetpan/clist.h> |
8 | 9 | ||
9 | class encodedString; | 10 | class encodedString; |
10 | struct mailstorage; | 11 | struct mailstorage; |
11 | struct mailfolder; | 12 | struct mailfolder; |
12 | 13 | ||
13 | class NNTPwrapper : public Genericwrapper | 14 | class NNTPwrapper : public Genericwrapper |
14 | { | 15 | { |
15 | 16 | ||
16 | Q_OBJECT | 17 | Q_OBJECT |
17 | 18 | ||
18 | public: | 19 | public: |
19 | NNTPwrapper( NNTPaccount *a ); | 20 | NNTPwrapper( NNTPaccount *a ); |
20 | virtual ~NNTPwrapper(); | 21 | virtual ~NNTPwrapper(); |
21 | 22 | ||
22 | /* mailbox will be ignored */ | 23 | /* mailbox will be ignored */ |
23 | virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target ); | 24 | virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 ); |
24 | /* should only get the subscribed one */ | 25 | /* should only get the subscribed one */ |
25 | virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders(); | 26 | virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders(); |
26 | /* mailbox will be ignored */ | 27 | /* mailbox will be ignored */ |
27 | virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX"); | 28 | virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX"); |
28 | QStringList listAllNewsgroups(const QString&mask = QString::null); | 29 | QStringList listAllNewsgroups(const QString&mask = QString::null); |
29 | virtual void deleteMail(const RecMailP&mail); | 30 | virtual void deleteMail(const RecMailP&mail); |
30 | virtual void answeredMail(const RecMailP&mail); | 31 | virtual void answeredMail(const RecMailP&mail); |
31 | virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&); | 32 | virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&); |
32 | 33 | ||
33 | virtual RecBodyP fetchBody( const RecMailP &mail ); | 34 | virtual RecBodyP fetchBody( const RecMailP &mail ); |
34 | virtual encodedString* fetchRawBody(const RecMailP&mail); | 35 | virtual encodedString* fetchRawBody(const RecMailP&mail); |
35 | virtual void logout(); | 36 | virtual void logout(); |
36 | virtual MAILLIB::ATYPE getType()const; | 37 | virtual MAILLIB::ATYPE getType()const; |
37 | virtual const QString&getName()const; | 38 | virtual const QString&getName()const; |
38 | static void nntp_progress( size_t current, size_t maximum ); | 39 | static void nntp_progress( size_t current, size_t maximum ); |
39 | 40 | ||
40 | protected: | 41 | protected: |
41 | void login(); | 42 | void login(); |
42 | NNTPaccount *account; | 43 | NNTPaccount *account; |
43 | mailstorage* m_nntp; | 44 | mailstorage* m_nntp; |
44 | 45 | ||
45 | 46 | ||
46 | }; | 47 | }; |
47 | 48 | ||