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

nntpwrapper.h

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

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