author | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
commit | e3b89230f065c48c84b48c88edb6eb088374c487 (patch) (side-by-side diff) | |
tree | 162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/libmailwrapper/pop3wrapper.h | |
parent | 2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff) | |
download | kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2 |
Initial revision
Diffstat (limited to 'kmicromail/libmailwrapper/pop3wrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/pop3wrapper.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/pop3wrapper.h b/kmicromail/libmailwrapper/pop3wrapper.h new file mode 100644 index 0000000..5101fa5 --- a/dev/null +++ b/kmicromail/libmailwrapper/pop3wrapper.h @@ -0,0 +1,42 @@ +#ifndef __POP3WRAPPER +#define __POP3WRAPPER + +#include "mailwrapper.h" +#include "genericwrapper.h" +#include <qstring.h> + +class encodedString; +struct mailstorage; +struct mailfolder; + +class POP3wrapper : public Genericwrapper +{ + Q_OBJECT + +public: + POP3wrapper( POP3account *a ); + virtual ~POP3wrapper(); + /* mailbox will be ignored */ + virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target ); + virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders(); + /* mailbox will be ignored */ + virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX"); + + virtual void deleteMail(const RecMailP&mail); + virtual void answeredMail(const RecMailP&mail); + virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&); + + virtual RecBodyP fetchBody( const RecMailP &mail ); + virtual encodedString* fetchRawBody(const RecMailP&mail); + virtual void logout(); + virtual MAILLIB::ATYPE getType()const; + virtual const QString&getName()const; + static void pop3_progress( size_t current, size_t maximum ); + +protected: + void login(); + POP3account *account; + mailstorage*m_pop3; +}; + +#endif |