Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pop3wrapper.h

Go to the documentation of this file.
00001 #ifndef __POP3WRAPPER
00002 #define __POP3WRAPPER
00003 
00004 #include "mailwrapper.h"
00005 #include "genericwrapper.h"
00006 #include <qstring.h>
00007 
00008 class encodedString;
00009 struct mailstorage;
00010 struct mailfolder;
00011 
00012 class POP3wrapper : public Genericwrapper
00013 {
00014     Q_OBJECT
00015 
00016 public:
00017     POP3wrapper( POP3account *a );
00018     virtual ~POP3wrapper();
00019     /* mailbox will be ignored */
00020     virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target );
00021     virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
00022     /* mailbox will be ignored */
00023     virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
00024 
00025     virtual void deleteMail(const RecMailP&mail);
00026     virtual void answeredMail(const RecMailP&mail);
00027     virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&);
00028 
00029     virtual RecBodyP fetchBody( const RecMailP &mail );
00030     virtual encodedString* fetchRawBody(const RecMailP&mail);
00031     virtual void logout();
00032     virtual MAILLIB::ATYPE getType()const;
00033     virtual const QString&getName()const;
00034     static void pop3_progress( size_t current, size_t maximum );
00035 
00036 protected:
00037     void login();
00038     POP3account *account;
00039     mailstorage*m_pop3;
00040     int m_maxsize;
00041     bool m_checksize;
00042 };
00043 
00044 #endif

Generated on Sat Nov 5 16:17:38 2005 for OPIE by  doxygen 1.4.2