From a08aff328d4393031d5ba7d622c2b05705a89d73 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 04 Jul 2007 11:23:42 +0000 Subject: initial public commit of qt4 port --- (limited to 'kmicromail/libmailwrapper/mboxwrapper.cpp') diff --git a/kmicromail/libmailwrapper/mboxwrapper.cpp b/kmicromail/libmailwrapper/mboxwrapper.cpp index 87f8c8a..888cae2 100644 --- a/kmicromail/libmailwrapper/mboxwrapper.cpp +++ b/kmicromail/libmailwrapper/mboxwrapper.cpp @@ -3,6 +3,8 @@ #include "mailwrapper.h" #include #include +//Added by qt3to4: +#include #include #include @@ -23,7 +25,7 @@ MBOXwrapper::~MBOXwrapper() { } -void MBOXwrapper::listMessages(const QString & mailbox, QValueList &target ) +void MBOXwrapper::listMessages(const QString & mailbox, Q3ValueList &target ) { mailstorage*storage = mailstorage_new(NULL); QString p = MBOXPath+"/"; @@ -48,9 +50,9 @@ void MBOXwrapper::listMessages(const QString & mailbox, QValueList &ta Global::statusMessage(i18n("Mailbox has %1 mail(s)").arg(target.count())); } -QValueList >* MBOXwrapper::listFolders() +Q3ValueList >* MBOXwrapper::listFolders() { - QValueList >* folders = new QValueList >(); + Q3ValueList >* folders = new Q3ValueList >(); QDir dir(MBOXPath); if (!dir.exists()) return folders; dir.setFilter(QDir::Files|QDir::Writable|QDir::Readable); @@ -217,7 +219,7 @@ encodedString* MBOXwrapper::fetchRawBody(const RecMailP&mail) return result; } -void MBOXwrapper::deleteMails(const QString & mailbox,const QValueList &target) +void MBOXwrapper::deleteMails(const QString & mailbox,const Q3ValueList &target) { QString p = MBOXPath+"/"; p+=mailbox; @@ -231,11 +233,11 @@ void MBOXwrapper::deleteMails(const QString & mailbox,const QValueList mailmbox_done(f); } -void MBOXwrapper::deleteMails(mailmbox_folder*f,const QValueList &target) +void MBOXwrapper::deleteMails(mailmbox_folder*f,const Q3ValueList &target) { if (!f) return; int r; - QValueList::ConstIterator it; + Q3ValueList::ConstIterator it; for (it=target.begin(); it != target.end();++it) { r = mailmbox_delete_msg(f,(*it)->getNumber()); if (r!=MAILMBOX_NO_ERROR) { -- cgit v0.9.0.2