Diffstat (limited to 'noncore/net/mail/mboxwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/mboxwrapper.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/net/mail/mboxwrapper.h b/noncore/net/mail/mboxwrapper.h index f64ad52..226a544 100644 --- a/noncore/net/mail/mboxwrapper.h +++ b/noncore/net/mail/mboxwrapper.h @@ -5,8 +5,9 @@ #include <qstring.h> class RecMail; class RecBody; +struct mailmbox_folder; class MBOXwrapper : public Genericwrapper { Q_OBJECT @@ -18,18 +19,23 @@ public: virtual QList<Folder>* listFolders(); virtual void deleteMail(const RecMail&mail); virtual void answeredMail(const RecMail&mail); - virtual void createFolder(const QString&aFolder); + + virtual int createMbox(const QString&folder,const Folder*f=0,const QString&d="",bool s=false); + virtual int deleteMbox(const Folder*); + virtual void storeMessage(const char*msg,size_t length, const QString&folder); virtual RecBody fetchBody( const RecMail &mail ); static void mbox_progress( size_t current, size_t maximum ); virtual void fetchRawBody(const RecMail&mail,char**target,size_t*length); virtual void deleteMails(const QString & mailbox,QList<RecMail> &target); + virtual int deleteAllMail(const Folder*); protected: + static void deleteMails(mailmbox_folder*f,QList<RecMail> &target); QString MBOXPath; }; #endif |