summaryrefslogtreecommitdiffabout
path: root/kmicromail
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/accountitem.cpp128
-rw-r--r--kmicromail/accountitem.h63
-rw-r--r--kmicromail/accountview.cpp30
-rw-r--r--kmicromail/accountview.h22
-rw-r--r--kmicromail/composemail.cpp14
-rw-r--r--kmicromail/composemail.h6
-rw-r--r--kmicromail/editaccounts.cpp40
-rw-r--r--kmicromail/editaccounts.h18
-rw-r--r--kmicromail/kmicromail.pro10
-rw-r--r--kmicromail/kmicromailE.pro2
-rw-r--r--kmicromail/koprefs.cpp2
-rw-r--r--kmicromail/koprefsdialog.cpp149
-rw-r--r--kmicromail/koprefsdialog.h12
-rw-r--r--kmicromail/libetpan/libetpan.pro2
-rw-r--r--kmicromail/libetpan/libetpanE.pro2
-rw-r--r--kmicromail/libmailwrapper/abstractmail.cpp30
-rw-r--r--kmicromail/libmailwrapper/abstractmail.h12
-rw-r--r--kmicromail/libmailwrapper/generatemail.cpp6
-rw-r--r--kmicromail/libmailwrapper/genericwrapper.cpp14
-rw-r--r--kmicromail/libmailwrapper/genericwrapper.h6
-rw-r--r--kmicromail/libmailwrapper/imapwrapper.cpp28
-rw-r--r--kmicromail/libmailwrapper/imapwrapper.h14
-rw-r--r--kmicromail/libmailwrapper/libmailwrapper.pro8
-rw-r--r--kmicromail/libmailwrapper/logindialog.cpp2
-rw-r--r--kmicromail/libmailwrapper/logindialog.h2
-rw-r--r--kmicromail/libmailwrapper/mailtypes.cpp10
-rw-r--r--kmicromail/libmailwrapper/mailtypes.h14
-rw-r--r--kmicromail/libmailwrapper/mailwrapper.cpp14
-rw-r--r--kmicromail/libmailwrapper/mailwrapper.h6
-rw-r--r--kmicromail/libmailwrapper/mboxwrapper.cpp14
-rw-r--r--kmicromail/libmailwrapper/mboxwrapper.h10
-rw-r--r--kmicromail/libmailwrapper/mhwrapper.cpp12
-rw-r--r--kmicromail/libmailwrapper/mhwrapper.h8
-rw-r--r--kmicromail/libmailwrapper/nntpwrapper.cpp12
-rw-r--r--kmicromail/libmailwrapper/nntpwrapper.h6
-rw-r--r--kmicromail/libmailwrapper/pop3wrapper.cpp20
-rw-r--r--kmicromail/libmailwrapper/pop3wrapper.h8
-rw-r--r--kmicromail/libmailwrapper/sendmailprogress.cpp2
-rw-r--r--kmicromail/libmailwrapper/settings.cpp10
-rw-r--r--kmicromail/libmailwrapper/smtpwrapper.cpp6
-rw-r--r--kmicromail/mailistviewitem.cpp4
-rw-r--r--kmicromail/mailistviewitem.h2
-rw-r--r--kmicromail/main.cpp5
-rw-r--r--kmicromail/mainwindow.cpp74
-rw-r--r--kmicromail/mainwindow.h26
-rw-r--r--kmicromail/nntpgroups.cpp16
-rw-r--r--kmicromail/nntpgroups.h2
-rw-r--r--kmicromail/nntpgroupsdlg.cpp4
-rw-r--r--kmicromail/opiemail.cpp47
-rw-r--r--kmicromail/opiemail.h17
-rw-r--r--kmicromail/qpe/qdialog.h2
-rw-r--r--kmicromail/qpe/qdialog_hacked.cpp6
-rw-r--r--kmicromail/selectsmtp.cpp4
-rw-r--r--kmicromail/selectsmtp.h2
-rw-r--r--kmicromail/selectstore.h2
-rw-r--r--kmicromail/settingsdialog.cpp6
-rw-r--r--kmicromail/settingsdialog.h2
-rw-r--r--kmicromail/statuswidget.cpp4
-rw-r--r--kmicromail/statuswidget.h2
-rw-r--r--kmicromail/viewmail.cpp47
-rw-r--r--kmicromail/viewmail.h26
-rw-r--r--kmicromail/viewmailbase.cpp25
-rw-r--r--kmicromail/viewmailbase.h25
63 files changed, 612 insertions, 512 deletions
diff --git a/kmicromail/accountitem.cpp b/kmicromail/accountitem.cpp
index 985a762..9b1ea2f 100644
--- a/kmicromail/accountitem.cpp
+++ b/kmicromail/accountitem.cpp
@@ -13,6 +13,8 @@
/* QT */
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <kiconloader.h>
#include <klocale.h>
@@ -55,5 +57,5 @@ AbstractMail *POP3viewItem::getWrapper()
}
-void POP3viewItem::refresh(QValueList<Opie::Core::OSmartPointer<RecMail> > & )
+void POP3viewItem::refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> > & )
{
refresh();
@@ -63,14 +65,14 @@ void POP3viewItem::refresh()
{
if (account->getOffline()) return;
- QValueList<FolderP> *folders = wrapper->listFolders();
- QListViewItem *child = firstChild();
+ Q3ValueList<FolderP> *folders = wrapper->listFolders();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
delete tmp;
}
- QValueList<FolderP>::ConstIterator it;
- QListViewItem*item = 0;
+ Q3ValueList<FolderP>::ConstIterator it;
+ Q3ListViewItem*item = 0;
for ( it = folders->begin(); it!=folders->end(); ++it)
{
@@ -87,7 +89,7 @@ RECBODYP POP3viewItem::fetchBody( const RecMailP &mail )
}
-QPopupMenu * POP3viewItem::getContextMenu()
+Q3PopupMenu * POP3viewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -109,8 +111,8 @@ QPopupMenu * POP3viewItem::getContextMenu()
void POP3viewItem::disconnect()
{
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
delete tmp;
@@ -158,5 +160,5 @@ POP3folderItem::~POP3folderItem()
{}
-POP3folderItem::POP3folderItem( const FolderP&folderInit, POP3viewItem *parent , QListViewItem*after )
+POP3folderItem::POP3folderItem( const FolderP&folderInit, POP3viewItem *parent , Q3ListViewItem*after )
: AccountViewItem(folderInit,parent,after )
{
@@ -173,5 +175,5 @@ POP3folderItem::POP3folderItem( const FolderP&folderInit, POP3viewItem *parent ,
}
-void POP3folderItem::refresh(QValueList<RecMailP>&target)
+void POP3folderItem::refresh(Q3ValueList<RecMailP>&target)
{
if (folder->may_select())
@@ -184,7 +186,7 @@ RECBODYP POP3folderItem::fetchBody(const RecMailP&aMail)
}
-QPopupMenu * POP3folderItem::getContextMenu()
+Q3PopupMenu * POP3folderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -262,5 +264,5 @@ AbstractMail *NNTPviewItem::getWrapper()
}
-void NNTPviewItem::refresh( QValueList<RecMailP> & )
+void NNTPviewItem::refresh( Q3ValueList<RecMailP> & )
{
refresh();
@@ -270,15 +272,15 @@ void NNTPviewItem::refresh()
{
if (account->getOffline()) return;
- QValueList<FolderP> *folders = wrapper->listFolders();
+ Q3ValueList<FolderP> *folders = wrapper->listFolders();
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
delete tmp;
}
- QValueList<FolderP>::ConstIterator it;
- QListViewItem*item = 0;
+ Q3ValueList<FolderP>::ConstIterator it;
+ Q3ListViewItem*item = 0;
for ( it = folders->begin(); it!=folders->end(); ++it)
{
@@ -295,7 +297,7 @@ RECBODYP NNTPviewItem::fetchBody( const RecMailP &mail )
}
-QPopupMenu * NNTPviewItem::getContextMenu()
+Q3PopupMenu * NNTPviewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -327,8 +329,8 @@ void NNTPviewItem::subscribeGroups()
void NNTPviewItem::disconnect()
{
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
delete tmp;
@@ -369,5 +371,5 @@ NNTPfolderItem::~NNTPfolderItem()
{}
-NNTPfolderItem::NNTPfolderItem( const FolderP &folderInit, NNTPviewItem *parent , QListViewItem*after )
+NNTPfolderItem::NNTPfolderItem( const FolderP &folderInit, NNTPviewItem *parent , Q3ListViewItem*after )
: AccountViewItem( folderInit, parent,after )
{
@@ -384,5 +386,5 @@ NNTPfolderItem::NNTPfolderItem( const FolderP &folderInit, NNTPviewItem *parent
}
-void NNTPfolderItem::refresh(QValueList<RecMailP>&target)
+void NNTPfolderItem::refresh(Q3ValueList<RecMailP>&target)
{
if (folder->may_select())
@@ -395,7 +397,7 @@ RECBODYP NNTPfolderItem::fetchBody(const RecMailP&aMail)
}
-QPopupMenu * NNTPfolderItem::getContextMenu()
+Q3PopupMenu * NNTPfolderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -454,5 +456,5 @@ AbstractMail *IMAPviewItem::getWrapper()
}
-void IMAPviewItem::refresh(QValueList<RecMailP>&)
+void IMAPviewItem::refresh(Q3ValueList<RecMailP>&)
{
refreshFolders(false);
@@ -471,9 +473,9 @@ void IMAPviewItem::refreshFolders(bool force)
removeChilds();
currentFolders.clear();
- QValueList<FolderP> * folders = wrapper->listFolders();
+ Q3ValueList<FolderP> * folders = wrapper->listFolders();
- QValueList<FolderP>::Iterator it;
- QListViewItem*item = 0;
- QListViewItem*titem = 0;
+ Q3ValueList<FolderP>::Iterator it;
+ Q3ListViewItem*item = 0;
+ Q3ListViewItem*titem = 0;
QString fname,del,search;
int pos;
@@ -514,7 +516,7 @@ void IMAPviewItem::refreshFolders(bool force)
}
-QPopupMenu * IMAPviewItem::getContextMenu()
+Q3PopupMenu * IMAPviewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -616,5 +618,5 @@ bool IMAPviewItem::offline()
}
-IMAPfolderItem::IMAPfolderItem( const FolderP& folderInit, IMAPviewItem *parent , QListViewItem*after )
+IMAPfolderItem::IMAPfolderItem( const FolderP& folderInit, IMAPviewItem *parent , Q3ListViewItem*after )
: AccountViewItem( folderInit, parent , after )
{
@@ -631,5 +633,5 @@ IMAPfolderItem::IMAPfolderItem( const FolderP& folderInit, IMAPviewItem *parent
}
-IMAPfolderItem::IMAPfolderItem(const FolderP &folderInit, IMAPfolderItem *parent , QListViewItem*after, IMAPviewItem *master )
+IMAPfolderItem::IMAPfolderItem(const FolderP &folderInit, IMAPfolderItem *parent , Q3ListViewItem*after, IMAPviewItem *master )
: AccountViewItem(folderInit, parent,after )
{
@@ -654,5 +656,5 @@ const QString& IMAPfolderItem::Delemiter()const
}
-void IMAPfolderItem::refresh(QValueList<RecMailP>&target)
+void IMAPfolderItem::refresh(Q3ValueList<RecMailP>&target)
{
if (folder->may_select())
@@ -671,7 +673,7 @@ RECBODYP IMAPfolderItem::fetchBody(const RecMailP&aMail)
}
-QPopupMenu * IMAPfolderItem::getContextMenu()
+Q3PopupMenu * IMAPfolderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -722,5 +724,5 @@ void IMAPfolderItem::deleteFolder()
if (imap->getWrapper()->deleteMbox(folder))
{
- QListView*v=listView();
+ Q3ListView*v=listView();
IMAPviewItem * box = imap;
/* be carefull - after that this object is destroyd so don't use
@@ -801,5 +803,5 @@ AbstractMail *MHviewItem::getWrapper()
}
-void MHviewItem::refresh( QValueList<RecMailP> & target)
+void MHviewItem::refresh( Q3ValueList<RecMailP> & target)
{
refresh(false);
@@ -812,6 +814,6 @@ void MHviewItem::refresh(bool force)
removeChilds();
currentFolders.clear();
- QValueList<FolderP> *folders = wrapper->listFolders();
- QValueList<FolderP>::ConstIterator it;
+ Q3ValueList<FolderP> *folders = wrapper->listFolders();
+ Q3ValueList<FolderP>::ConstIterator it;
MHfolderItem*item = 0;
MHfolderItem*pmaster = 0;
@@ -858,7 +860,7 @@ RECBODYP MHviewItem::fetchBody( const RecMailP &mail )
}
-QPopupMenu * MHviewItem::getContextMenu()
+Q3PopupMenu * MHviewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -921,5 +923,5 @@ MHfolderItem::~MHfolderItem()
{}
-MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , QListViewItem*after )
+MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , Q3ListViewItem*after )
: AccountViewItem(folderInit, parent,after )
{
@@ -928,5 +930,5 @@ MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , QLis
}
-MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, QListViewItem*after, MHviewItem*master)
+MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, Q3ListViewItem*after, MHviewItem*master)
: AccountViewItem(folderInit, parent,after )
{
@@ -968,5 +970,5 @@ const FolderP&MHfolderItem::getFolder()const
}
-void MHfolderItem::refresh(QValueList<RecMailP>&target)
+void MHfolderItem::refresh(Q3ValueList<RecMailP>&target)
{
if (folder->may_select())
@@ -990,5 +992,5 @@ void MHfolderItem::deleteFolder()
if (mbox->getWrapper()->deleteMbox(folder))
{
- QListView*v=listView();
+ Q3ListView*v=listView();
MHviewItem * box = mbox;
/* be carefull - after that this object is destroyd so don't use
@@ -1003,7 +1005,7 @@ void MHfolderItem::deleteFolder()
}
-QPopupMenu * MHfolderItem::getContextMenu()
+Q3PopupMenu * MHfolderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -1032,5 +1034,5 @@ void MHfolderItem::createFolder()
if (mbox->getWrapper()->createMbox(ndir,folder))
{
- QListView*v=listView();
+ Q3ListView*v=listView();
MHviewItem * box = mbox;
/* be carefull - after that this object is destroyd so don't use
@@ -1079,5 +1081,5 @@ const QString AccountViewItem::contextName="AccountViewItem";
AccountViewItem::AccountViewItem( AccountView *parent )
- : QListViewItem( parent )
+ : Q3ListViewItem( parent )
{
init();
@@ -1085,18 +1087,18 @@ AccountViewItem::AccountViewItem( AccountView *parent )
}
-AccountViewItem::AccountViewItem( QListViewItem *parent)
- : QListViewItem( parent),folder(0)
+AccountViewItem::AccountViewItem( Q3ListViewItem *parent)
+ : Q3ListViewItem( parent),folder(0)
{
init();
}
-AccountViewItem::AccountViewItem( QListViewItem *parent , QListViewItem*after )
- :QListViewItem( parent,after ),folder(0)
+AccountViewItem::AccountViewItem( Q3ListViewItem *parent , Q3ListViewItem*after )
+ :Q3ListViewItem( parent,after ),folder(0)
{
init();
}
-AccountViewItem::AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after )
- :QListViewItem( parent,after ),folder(folderInit)
+AccountViewItem::AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,Q3ListViewItem *parent , Q3ListViewItem*after )
+ :Q3ListViewItem( parent,after ),folder(folderInit)
{
init();
@@ -1141,8 +1143,8 @@ void AccountViewItem::deleteAllMail(AbstractMail*wrapper,const FolderP&folder)
void AccountViewItem::removeChilds()
{
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
delete tmp;
diff --git a/kmicromail/accountitem.h b/kmicromail/accountitem.h
index 4c92bfc..bbfd05f 100644
--- a/kmicromail/accountitem.h
+++ b/kmicromail/accountitem.h
@@ -3,6 +3,9 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3PopupMenu>
#include <opie2/osmartpointer.h>
#include <libmailwrapper/mailwrapper.h>
@@ -11,5 +14,5 @@ class POP3wrapper;
class RecMail;
class RecBody;
-class QPopupMenu;
+class Q3PopupMenu;
class Selectstore;
class AccountView;
@@ -22,17 +25,17 @@ class Folder;
#define RECBODYP Opie::Core::OSmartPointer<RecBody>
-class AccountViewItem : public QListViewItem
+class AccountViewItem : public Q3ListViewItem
{
public:
AccountViewItem( AccountView *parent );
- AccountViewItem( QListViewItem *parent);
- AccountViewItem( QListViewItem *parent , QListViewItem*after );
- AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after );
+ AccountViewItem( Q3ListViewItem *parent);
+ AccountViewItem( Q3ListViewItem *parent , Q3ListViewItem*after );
+ AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,Q3ListViewItem *parent , Q3ListViewItem*after );
virtual ~AccountViewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&)=0;
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&)=0;
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&)=0;
- virtual QPopupMenu * getContextMenu(){return 0;};
+ virtual Q3PopupMenu * getContextMenu(){return 0;};
virtual void contextMenuSelected(int){}
virtual AccountView*accountView();
@@ -57,8 +60,8 @@ public:
POP3viewItem( POP3account *a, AccountView *parent );
virtual ~POP3viewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target );
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target );
virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail );
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -75,9 +78,9 @@ class POP3folderItem : public AccountViewItem
public:
- POP3folderItem( const Opie::Core::OSmartPointer<Folder>&folder, POP3viewItem *parent , QListViewItem*after );
+ POP3folderItem( const Opie::Core::OSmartPointer<Folder>&folder, POP3viewItem *parent , Q3ListViewItem*after );
virtual ~POP3folderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -94,8 +97,8 @@ public:
NNTPviewItem( NNTPaccount *a, AccountView *parent );
virtual ~NNTPviewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target );
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target );
virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail );
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -113,9 +116,9 @@ class NNTPfolderItem : public AccountViewItem
public:
- NNTPfolderItem(const Opie::Core::OSmartPointer<Folder>&folder, NNTPviewItem *parent , QListViewItem*after );
+ NNTPfolderItem(const Opie::Core::OSmartPointer<Folder>&folder, NNTPviewItem *parent , Q3ListViewItem*after );
virtual ~NNTPfolderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -133,8 +136,8 @@ public:
IMAPviewItem( IMAPaccount *a, AccountView *parent );
virtual ~IMAPviewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
const QStringList&subFolders();
@@ -153,10 +156,10 @@ class IMAPfolderItem : public AccountViewItem
public:
- IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPviewItem *parent , QListViewItem*after );
- IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPfolderItem *parent , QListViewItem*after, IMAPviewItem *master );
+ IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPviewItem *parent , Q3ListViewItem*after );
+ IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPfolderItem *parent , Q3ListViewItem*after, IMAPviewItem *master );
virtual ~IMAPfolderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
virtual const QString& Delemiter()const;
@@ -175,8 +178,8 @@ public:
MHviewItem( const QString&aMboxPath, AccountView *parent );
virtual ~MHviewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target );
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target );
virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail );
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
QStringList subFolders();
@@ -195,10 +198,10 @@ class MHfolderItem : public AccountViewItem
public:
- MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHviewItem *parent , QListViewItem*after );
- MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHfolderItem *parent, QListViewItem*after, MHviewItem*master);
+ MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHviewItem *parent , Q3ListViewItem*after );
+ MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHfolderItem *parent, Q3ListViewItem*after, MHviewItem*master);
virtual ~MHfolderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
virtual const Opie::Core::OSmartPointer<Folder>&getFolder()const;
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp
index d1d4f7e..eea1f65 100644
--- a/kmicromail/accountview.cpp
+++ b/kmicromail/accountview.cpp
@@ -14,23 +14,25 @@
/* QT */
#include <qmessagebox.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qcheckbox.h>
#include <qtimer.h>
#include <qspinbox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <klocale.h>
#include <kmessagebox.h>
using namespace Opie::Core;
-AccountView::AccountView( QWidget *parent, const char *name, WFlags flags )
- : QListView( parent, name, flags )
+AccountView::AccountView( QWidget *parent, const char *name, Qt::WFlags flags )
+ : Q3ListView( parent, name, flags )
{
//connect( this, SIGNAL( selectionChanged(QListViewItem*) ),
// SLOT( refresh(QListViewItem*) ) );
- connect( this, SIGNAL( clicked(QListViewItem*) ),
- SLOT( refresh(QListViewItem*) ) );
- connect( this, SIGNAL( returnPressed(QListViewItem*) ),
- SLOT( refresh(QListViewItem*) ) );
- connect( this, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this,
- SLOT( slotHold(int,QListViewItem*,const QPoint&,int) ) );
+ connect( this, SIGNAL( clicked(Q3ListViewItem*) ),
+ SLOT( refresh(Q3ListViewItem*) ) );
+ connect( this, SIGNAL( returnPressed(Q3ListViewItem*) ),
+ SLOT( refresh(Q3ListViewItem*) ) );
+ connect( this, SIGNAL( mouseButtonPressed(int,Q3ListViewItem*,const QPoint&,int) ),this,
+ SLOT( slotHold(int,Q3ListViewItem*,const QPoint&,int) ) );
setSorting(0);
}
@@ -49,10 +51,10 @@ void AccountView::slotContextMenu(int id)
}
-void AccountView::slotHold(int button, QListViewItem * item,const QPoint&,int)
+void AccountView::slotHold(int button, Q3ListViewItem * item,const QPoint&,int)
{
if (button==1) {return;}
if (!item) return;
AccountViewItem *view = static_cast<AccountViewItem *>(item);
- QPopupMenu*m = view->getContextMenu();
+ Q3PopupMenu*m = view->getContextMenu();
if (!m) return;
connect(m,SIGNAL(activated(int)),this,SLOT(slotContextMenu(int)));
@@ -94,5 +96,5 @@ void AccountView::populate( QList<Account> list )
}
-void AccountView::refresh(QListViewItem *item)
+void AccountView::refresh(Q3ListViewItem *item)
{
if ( item )
@@ -146,5 +148,5 @@ void AccountView::refreshCurrentSelected()
{
if ( !m_currentItem ) return;
- QValueList<RecMailP> headerlist;
+ Q3ValueList<RecMailP> headerlist;
AccountViewItem *view = static_cast<AccountViewItem *>(m_currentItem);
view->refresh(headerlist);
@@ -167,5 +169,5 @@ void AccountView::refreshAll()
RecBodyP AccountView::fetchBody(const RecMailP&aMail)
{
- QListViewItem*item = selectedItem ();
+ Q3ListViewItem*item = selectedItem ();
if (!item) return new RecBody();
AccountViewItem *view = static_cast<AccountViewItem *>(item);
diff --git a/kmicromail/accountview.h b/kmicromail/accountview.h
index 33f3479..14b0ff9 100644
--- a/kmicromail/accountview.h
+++ b/kmicromail/accountview.h
@@ -2,6 +2,8 @@
#define ACCOUNTVIEW_H
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <opie2/osmartpointer.h>
#include <libmailwrapper/mailtypes.h>
@@ -14,10 +16,10 @@ class IMAPviewItem;
class MHviewItem;
-class AccountView : public QListView
+class AccountView : public Q3ListView
{
Q_OBJECT
public:
- AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 );
+ AccountView( QWidget *parent = 0, const char *name = 0, Qt::WFlags flags = 0 );
virtual ~AccountView();
virtual void populate( QList<Account> list );
@@ -26,22 +28,22 @@ public:
virtual void downloadMailsInbox(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper);
virtual bool currentisDraft();
- QValueList<MHviewItem*> allAccounts() { return mhAccounts;}
+ Q3ValueList<MHviewItem*> allAccounts() { return mhAccounts;}
public slots:
virtual void refreshAll();
- virtual void refresh(QListViewItem *item);
+ virtual void refresh(Q3ListViewItem *item);
virtual void refreshCurrent();
virtual void refreshCurrentSelected();
virtual void refreshOutgoing();
- virtual void slotHold(int, QListViewItem *,const QPoint&,int);
+ virtual void slotHold(int, Q3ListViewItem *,const QPoint&,int);
virtual void slotContextMenu(int id);
void setupFolderselect(Selectstore*sels);
signals:
- void refreshMailview(const QValueList<RecMailP>& );
+ void refreshMailview(const Q3ValueList<RecMailP>& );
protected:
- QListViewItem* m_currentItem;
- QValueList<IMAPviewItem*> imapAccounts;
- QValueList<MHviewItem*> mhAccounts;
+ Q3ListViewItem* m_currentItem;
+ Q3ValueList<IMAPviewItem*> imapAccounts;
+ Q3ValueList<MHviewItem*> mhAccounts;
};
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp
index 4bc4441..81d7b52 100644
--- a/kmicromail/composemail.cpp
+++ b/kmicromail/composemail.cpp
@@ -39,12 +39,12 @@
#include <qcombobox.h>
#include <qcheckbox.h>
-#include <qiconset.h>
+#include <qicon.h>
#include <qtimer.h>
#include <qmessagebox.h>
#include <qpushbutton.h>
-#include <qmultilineedit.h>
+#include <q3multilineedit.h>
#include <qlabel.h>
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
//using namespace Opie::Core;
@@ -126,5 +126,5 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo
mMail = 0;
warnAttach = true;
- QIconSet icon;
+ QIcon icon;
//icon = SmallIcon("fileexport");
icon = SmallIcon("filesave");
@@ -142,5 +142,5 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo
#endif
message->setFont ( KOPrefs::instance()->mComposeFont );
- message->setWordWrap (QMultiLineEdit::WidgetWidth);
+ message->setWordWrap (Q3MultiLineEdit::WidgetWidth);
if ( smtpAccounts.count() > 0 ) {
fillValues( smtpAccountBox->currentItem() );
@@ -535,6 +535,6 @@ void ComposeMail::reEditMail(const RecMailP&current)
}
-AttachViewItem::AttachViewItem( QListView *parent, Attachment *att )
- : QListViewItem( parent )
+AttachViewItem::AttachViewItem( Q3ListView *parent, Attachment *att )
+ : Q3ListViewItem( parent )
{
attachment = att;
diff --git a/kmicromail/composemail.h b/kmicromail/composemail.h
index 966ac3e..9aef4e1 100644
--- a/kmicromail/composemail.h
+++ b/kmicromail/composemail.h
@@ -3,5 +3,5 @@
#include <qlineedit.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include "composemailui.h"
@@ -81,8 +81,8 @@ protected:
};
-class AttachViewItem : public QListViewItem
+class AttachViewItem : public Q3ListViewItem
{
public:
- AttachViewItem( QListView *parent, Attachment *att );
+ AttachViewItem( Q3ListView *parent, Attachment *att );
Attachment *getAttachment() { return attachment; }
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp
index 2c0f2d8..f274dc3 100644
--- a/kmicromail/editaccounts.cpp
+++ b/kmicromail/editaccounts.cpp
@@ -17,5 +17,5 @@
#include <qlabel.h>
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qspinbox.h>
#include <klocale.h>
@@ -26,6 +26,6 @@
using namespace Opie::Core;
-AccountListItem::AccountListItem( QListView *parent, Account *a)
- : QListViewItem( parent )
+AccountListItem::AccountListItem( Q3ListView *parent, Account *a)
+ : Q3ListViewItem( parent )
{
account = a;
@@ -52,5 +52,5 @@ AccountListItem::AccountListItem( QListView *parent, Account *a)
}
-EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags )
+EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: EditAccountsUI( parent, name, modal, flags )
{
@@ -309,5 +309,5 @@ void EditAccounts::accept()
*/
-SelectMailType::SelectMailType( QString *selection, QWidget *parent, const char *name, bool modal, WFlags flags )
+SelectMailType::SelectMailType( QString *selection, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: SelectMailTypeUI( parent, name, modal, flags )
{
@@ -326,5 +326,5 @@ void SelectMailType::slotSelection( const QString &sel )
*/
-IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: IMAPconfigUI( parent, name, modal, flags )
{
@@ -409,5 +409,5 @@ void IMAPconfig::accept()
*/
-POP3config::POP3config( POP3account *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+POP3config::POP3config( POP3account *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: POP3configUI( parent, name, modal, flags )
{
@@ -490,5 +490,5 @@ void POP3config::accept()
*/
-SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: SMTPconfigUI( parent, name, modal, flags )
{
@@ -499,5 +499,5 @@ SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name,
// fillValues();
- QIconSet icon;
+ QIcon icon;
//icon = SmallIcon("fileexport");
icon = SmallIcon("fileopen");
@@ -573,5 +573,5 @@ void SMTPconfig::accept()
*/
-NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: NNTPconfigUI( parent, name, modal, flags )
{
@@ -594,6 +594,6 @@ void NNTPconfig::slotShowSub()
ListViewGroups->clear();
for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
item->setOn( true );
}
@@ -607,7 +607,7 @@ void NNTPconfig::slotShowFilter()
int count = 0;
for ( QStringList::Iterator it = allGroups.begin(); it != allGroups.end(); ++it ) {
- QCheckListItem *item;
+ Q3CheckListItem *item;
if ( GroupFilter->text().isEmpty() || (*it).find( GroupFilter->text() ) >= 0 ) {
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
++count;
if ( subscribedGroups.contains( (*it) ) >= 1 ) {
@@ -630,6 +630,6 @@ void NNTPconfig::slotGetNG() {
for ( QStringList::Iterator it = allGroups.begin(); it != allGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
if ( subscribedGroups.contains( (*it) ) >= 1 ) {
item->setOn( true );
@@ -664,6 +664,6 @@ void NNTPconfig::fillValues()
/* don't forget that - you will overwrite values if user clicks cancel! */
for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
item->setOn( true );
}
@@ -680,9 +680,9 @@ void NNTPconfig::save()
data->setPassword( passLine->text() );
- QListViewItemIterator list_it( ListViewGroups );
+ Q3ListViewItemIterator list_it( ListViewGroups );
for ( ; list_it.current(); ++list_it ) {
- if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
+ if ( ( (Q3CheckListItem*)list_it.current() )->isOn() ) {
if ( subscribedGroups.contains( list_it.current()->text(0) ) < 1 )
subscribedGroups.append( list_it.current()->text(0) );
diff --git a/kmicromail/editaccounts.h b/kmicromail/editaccounts.h
index 465780c..3d01d23 100644
--- a/kmicromail/editaccounts.h
+++ b/kmicromail/editaccounts.h
@@ -3,5 +3,5 @@
#include <qstring.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include "editaccountsui.h"
@@ -16,9 +16,9 @@
-class AccountListItem : public QListViewItem
+class AccountListItem : public Q3ListViewItem
{
public:
- AccountListItem( QListView *parent, Account *a);
+ AccountListItem( Q3ListView *parent, Account *a);
Account *getAccount() { return account; }
@@ -33,5 +33,5 @@ class EditAccounts : public EditAccountsUI
public:
- EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
public slots:
@@ -61,5 +61,5 @@ class SelectMailType : public SelectMailTypeUI
public:
- SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
private slots:
@@ -76,5 +76,5 @@ class IMAPconfig : public IMAPconfigUI
public:
- IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
public slots:
@@ -95,5 +95,5 @@ class POP3config : public POP3configUI
public:
- POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
public slots:
@@ -114,5 +114,5 @@ class SMTPconfig : public SMTPconfigUI
public:
- SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
public slots:
@@ -134,5 +134,5 @@ class NNTPconfig : public NNTPconfigUI
public:
- NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
public slots:
diff --git a/kmicromail/kmicromail.pro b/kmicromail/kmicromail.pro
index 9f4d4bd..ce30bbf 100644
--- a/kmicromail/kmicromail.pro
+++ b/kmicromail/kmicromail.pro
@@ -42,5 +42,6 @@ SOURCES = main.cpp \
nntpgroupsdlg.cpp
-INTERFACES = editaccountsui.ui \
+#The following line was changed from INTERFACES to FORMS3 by qt3to4
+FORMS3 = editaccountsui.ui \
selectmailtypeui.ui \
imapconfigui.ui \
@@ -57,5 +58,5 @@ INTERFACES = editaccountsui.ui \
INCLUDEPATH += ./qpe . .. ../libkdepim ../microkde ../microkde/kdecore ../libetpan/include ../microkde/kdeui
-LIBS += -L../bin -lmicromailwrapper -lmicrolibetpan -lmicrokde -lssl -lcrypto -lmicrokdepim -lmicrokabc -lpthread
+LIBS += -L../bin -lmicromailwrapper -lxmicrolibetpan -lxmicrokde -lssl -lcrypto -lxmicrokdepim -lxmicrokabc -lpthread
DESTDIR= ../bin
@@ -77,2 +78,7 @@ MOC_DIR = moc/win
}
+#The following line was inserted by qt3to4
+QT += xml qt3support
+#The following line was inserted by qt3to4
+CONFIG += uic3
+
diff --git a/kmicromail/kmicromailE.pro b/kmicromail/kmicromailE.pro
index a5a51f7..19fa398 100644
--- a/kmicromail/kmicromailE.pro
+++ b/kmicromail/kmicromailE.pro
@@ -56,5 +56,5 @@ INTERFACES = editaccountsui.ui \
INCLUDEPATH += $(QPEDIR)/include . $(KDEPIMDIR) $(KDEPIMDIR)/libkdepim $(KDEPIMDIR)/qtcompat $(KDEPIMDIR)/microkde $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/libetpan/include $(KDEPIMDIR)/microkde/kdeui
-LIBS += -L$(QPEDIR)/lib -lmicromailwrapper -lqpe -lmicrolibetpan -lmicrokde -lmicroqtcompat -lssl -lcrypto -ljpeg -lmicrokdepim -lpthread
+LIBS += -L$(QPEDIR)/lib -lmicromailwrapper -lqpe -lxmicrolibetpan -lxmicrokde -lmicroqtcompat -lssl -lcrypto -ljpeg -lxmicrokdepim -lpthread
LIBS += $(QTOPIALIB)
#LIBS += -lqtopia
diff --git a/kmicromail/koprefs.cpp b/kmicromail/koprefs.cpp
index e4b61dc..e2eed9a 100644
--- a/kmicromail/koprefs.cpp
+++ b/kmicromail/koprefs.cpp
@@ -27,5 +27,5 @@
#endif
#include <qdir.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qtextcodec.h>
#include <qstring.h>
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp
index 017f1f7..e3102a4 100644
--- a/kmicromail/koprefsdialog.cpp
+++ b/kmicromail/koprefsdialog.cpp
@@ -24,14 +24,14 @@
#include <qlayout.h>
#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
+#include <q3groupbox.h>
+#include <q3buttongroup.h>
#include <qlineedit.h>
#include <qfont.h>
#include <qslider.h>
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qcombobox.h>
-#include <qvbox.h>
-#include <qhbox.h>
+#include <q3vbox.h>
+#include <q3hbox.h>
#include <qregexp.h>
#include <qspinbox.h>
@@ -40,6 +40,11 @@
#include <qradiobutton.h>
#include <qpushbutton.h>
-#include <qstrlist.h>
+#include <q3strlist.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3GridLayout>
+#include <QPixmap>
+#include <Q3Frame>
#include <kcolorbutton.h>
@@ -112,7 +117,7 @@ void KOPrefsDialog::setupGlobalTab()
void KOPrefsDialog::setupMainTab()
{
- QFrame *topFrame = addPage(i18n("General"),0,0);
+ Q3Frame *topFrame = addPage(i18n("General"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -137,7 +142,7 @@ void KOPrefsDialog::setupMainTab()
void KOPrefsDialog::setupMailTab()
{
- QFrame *topFrame = addPage(i18n("Mail"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Mail"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -183,8 +188,8 @@ void KOPrefsDialog::setupFontsTab()
{
- QFrame *topFrame = addPage(i18n("Fonts"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Fonts"),0,0);
// DesktopIcon("fonts",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,7,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
topLayout->setMargin(3);
@@ -239,6 +244,6 @@ void KOPrefsDialog::usrWriteConfig()
void KOPrefsDialog::setupLocaleDateTab()
{
-QFrame *topFrame = addPage(i18n("Date Format"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,3,2);
+Q3Frame *topFrame = addPage(i18n("Date Format"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,3,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -293,6 +298,6 @@ QFrame *topFrame = addPage(i18n("Date Format"),0,0);
void KOPrefsDialog::setupLocaleTab()
{
- QFrame *topFrame = addPage(i18n("Locale"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3Frame *topFrame = addPage(i18n("Locale"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -332,5 +337,5 @@ void KOPrefsDialog::setupLocaleTab()
else {
QWidget * hb = new QWidget( topFrame );
- QHBoxLayout *hbLayout = new QHBoxLayout(hb);
+ Q3HBoxLayout *hbLayout = new Q3HBoxLayout(hb);
sb =
addWidBool(i18n("Week starts on Sunday"),
@@ -362,7 +367,7 @@ void KOPrefsDialog::setupSyncAlgTab()
#if 0
QLabel * lab;
- QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Sync Prefs"),0,0);
mSetupSyncAlgTab = topFrame;
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -404,6 +409,6 @@ void KOPrefsDialog::setupSyncTab()
#if 0
QLabel * lab;
- QFrame *topFrame = addPage(i18n("Sync Network"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3Frame *topFrame = addPage(i18n("Sync Network"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -452,8 +457,8 @@ void KOPrefsDialog::setupSyncTab()
void KOPrefsDialog::setupMainTab()
{
- QFrame *topFrame = addPage(i18n("General"),0,0);
+ Q3Frame *topFrame = addPage(i18n("General"),0,0);
// DesktopIcon("identity",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -476,9 +481,9 @@ void KOPrefsDialog::setupMainTab()
topLayout->addWidget(mEmailEdit,1,1);
KPrefsDialogWidBool *wb;
- QHBox *dummy;
+ Q3HBox *dummy;
if ( QApplication::desktop()->width() > 480 ) {
- dummy = new QHBox(topFrame);
+ dummy = new Q3HBox(topFrame);
} else {
- dummy = new QVBox(topFrame);
+ dummy = new Q3VBox(topFrame);
}
@@ -492,5 +497,5 @@ void KOPrefsDialog::setupMainTab()
- dummy = new QHBox(topFrame);
+ dummy = new Q3HBox(topFrame);
new QLabel(i18n("Days in What's Next:"),dummy);
mWhatsNextSpin = new QSpinBox(1,14,1,dummy);
@@ -500,5 +505,5 @@ void KOPrefsDialog::setupMainTab()
- dummy = new QHBox(topFrame);
+ dummy = new Q3HBox(topFrame);
new QLabel(i18n("Days in Next-X-Days:"),dummy);
mNextXDaysSpin = new QSpinBox(2,14,1,dummy);
@@ -506,5 +511,5 @@ void KOPrefsDialog::setupMainTab()
topLayout->addMultiCellWidget(dummy,4,4,0,1);
- QHBox *prioBox = new QHBox(topFrame);
+ Q3HBox *prioBox = new Q3HBox(topFrame);
// intervalBox->setSpacing(spacingHint());
topLayout->addMultiCellWidget(prioBox,5,5,0,1);
@@ -530,5 +535,5 @@ void KOPrefsDialog::setupMainTab()
// &(KOPrefs::instance()->mAutoSave),autoSaveGroup);
- QHBox *intervalBox = new QHBox(topFrame);
+ Q3HBox *intervalBox = new Q3HBox(topFrame);
// intervalBox->setSpacing(spacingHint());
topLayout->addMultiCellWidget(intervalBox,6,6,0,1);
@@ -621,12 +626,12 @@ void KOPrefsDialog::setupMainTab()
void KOPrefsDialog::setupTimeTab()
{
- QFrame *topFrame = addPage(i18n("Time"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Time"),0,0);
// DesktopIcon("clock",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
- QHBox *dummy = new QHBox(topFrame);
+ Q3HBox *dummy = new Q3HBox(topFrame);
KPrefsWidTime *dayBegins =
addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins),
@@ -659,5 +664,5 @@ void KOPrefsDialog::setupTimeTab()
- QGroupBox *workingHoursGroup = new QGroupBox(1,Horizontal,
+ Q3GroupBox *workingHoursGroup = new Q3GroupBox(1,Qt::Horizontal,
i18n("Working Hours"),
topFrame);
@@ -665,14 +670,14 @@ void KOPrefsDialog::setupTimeTab()
workingHoursGroup->layout()->setSpacing( 0 );
workingHoursGroup->layout()->setMargin( 4 );
- QHBox *workStartBox = new QHBox(workingHoursGroup);
+ Q3HBox *workStartBox = new Q3HBox(workingHoursGroup);
// workStartBox->setMargin( 0 );
addWidTime(i18n("Daily starting hour:"),
&(KOPrefs::instance()->mWorkingHoursStart),workStartBox);
- QHBox *workEndBox = new QHBox(workingHoursGroup);
+ Q3HBox *workEndBox = new Q3HBox(workingHoursGroup);
//workEndBox->setMargin( 0 );
addWidTime(i18n("Daily ending hour:"),
&(KOPrefs::instance()->mWorkingHoursEnd),workEndBox);
- QVBox *excludeBox = new QVBox(workingHoursGroup);
+ Q3VBox *excludeBox = new Q3VBox(workingHoursGroup);
//excludeBox->setMargin( 0 );
addWidBool(i18n("Exclude holidays"),
@@ -694,8 +699,8 @@ void KOPrefsDialog::setupViewsTab()
{
- QFrame *topFrame = addPage(i18n("Views"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Views"),0,0);
// DesktopIcon("viewmag",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,1);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,1);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -786,5 +791,5 @@ void KOPrefsDialog::setupViewsTab()
// DesktopIcon("viewmag",KIcon::SizeMedium));
- topLayout = new QGridLayout(topFrame,6,1);
+ topLayout = new Q3GridLayout(topFrame,6,1);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -839,10 +844,10 @@ void KOPrefsDialog::setupViewsTab()
// DesktopIcon("viewmag",KIcon::SizeMedium));
- topLayout = new QGridLayout(topFrame,5,1);
+ topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
ii = 0;
QLabel *lab;
- QHBox *habo = new QHBox( topFrame );
+ Q3HBox *habo = new Q3HBox( topFrame );
if ( QApplication::desktop()->width() < 320 ) {
lab = new QLabel ( i18n("Show events that recur "), topFrame );
@@ -866,5 +871,5 @@ void KOPrefsDialog::setupViewsTab()
- habo = new QHBox( topFrame );
+ habo = new Q3HBox( topFrame );
if ( QApplication::desktop()->width() < 320 ) {
lab = new QLabel (i18n("Show in every cell ") , topFrame );
@@ -934,5 +939,5 @@ void KOPrefsDialog::setupViewsTab()
// DesktopIcon("viewmag",KIcon::SizeMedium));
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -966,5 +971,5 @@ void KOPrefsDialog::setupViewsTab()
addWidColor(i18n("Todo due today color:"),
&(KOPrefs::instance()->mTodoDueTodayColor),wid);
- QHBoxLayout *widLayout = new QHBoxLayout(wid);
+ Q3HBoxLayout *widLayout = new Q3HBoxLayout(wid);
widLayout->addWidget( todoDueTodayColor->label() );
widLayout->addWidget( todoDueTodayColor->button() );
@@ -974,5 +979,5 @@ void KOPrefsDialog::setupViewsTab()
// Todo overdue color
wid = new QWidget( topFrame );
- widLayout = new QHBoxLayout(wid);
+ widLayout = new Q3HBoxLayout(wid);
KPrefsWidColor *todoOverdueColor =
addWidColor(i18n("Todo overdue color:"),
@@ -998,5 +1003,5 @@ void KOPrefsDialog::setupViewsTab()
// DesktopIcon("viewmag",KIcon::SizeMedium));
- topLayout = new QGridLayout(topFrame,2,1);
+ topLayout = new Q3GridLayout(topFrame,2,1);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -1011,26 +1016,26 @@ void KOPrefsDialog::setupViewsTab()
topLayout->addWidget(lab ,iii++,0);
#ifndef DESKTOP_VERSION
- lab->setAlignment( AlignLeft|WordBreak|AlignTop);
+ lab->setAlignment( Qt::AlignLeft|Qt::TextWordWrap|Qt::AlignTop);
#else
- lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop);
+ lab->setAlignment( Qt::AlignLeft|Qt::TextWrapAnywhere|Qt::TextWordWrap|Qt::AlignTop);
lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) );
#endif
- QHBox* dummyBox = new QHBox(topFrame);
+ Q3HBox* dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Play beeps count:"),dummyBox);
mAlarmPlayBeeps = new QSpinBox(0,500,1,dummyBox);
topLayout->addWidget(dummyBox,iii++,0);
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Beeps interval in sec:"),dummyBox);
mAlarmBeepInterval = new QSpinBox(1,600,1,dummyBox);
topLayout->addWidget(dummyBox,iii++,0);
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Default suspend time in min:"),dummyBox);
mAlarmSuspendTime = new QSpinBox(1,600,1,dummyBox);
topLayout->addWidget(dummyBox,iii++,0);
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Auto suspend count:"),dummyBox);
mAlarmSuspendCount = new QSpinBox(0,60,1,dummyBox);
@@ -1043,5 +1048,5 @@ void KOPrefsDialog::setupViewsTab()
- QHBox* hbo = new QHBox ( topFrame );
+ Q3HBox* hbo = new Q3HBox ( topFrame );
mDefaultAlarmFile = new QLineEdit(hbo);
QPushButton * loadTemplate = new QPushButton(hbo);
@@ -1083,8 +1088,8 @@ void KOPrefsDialog::setupFontsTab()
{
- QFrame *topFrame = addPage(i18n("Fonts"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Fonts"),0,0);
// DesktopIcon("fonts",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,7,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
topLayout->setMargin(3);
@@ -1153,5 +1158,5 @@ void KOPrefsDialog::setupFontsTab()
DesktopIcon("fonts",KIcon::SizeMedium));
- topLayout = new QGridLayout(topFrame,7,3);
+ topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
topLayout->setMargin(3);
@@ -1221,8 +1226,8 @@ void KOPrefsDialog::setupFontsTab()
void KOPrefsDialog::setupColorsTab()
{
- QFrame *topFrame = addPage(i18n("Colors"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Colors"),0,0);
// DesktopIcon("colorize",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,2);
// topLayout->setSpacing(spacingHint());
// topLayout->setMargin(marginHint());
@@ -1232,7 +1237,7 @@ void KOPrefsDialog::setupColorsTab()
int ii = 1;
- QGroupBox *categoryGroup ;
+ Q3GroupBox *categoryGroup ;
- categoryGroup = new QGroupBox(1,Vertical,i18n("Categories"),
+ categoryGroup = new Q3GroupBox(1,Qt::Vertical,i18n("Categories"),
topFrame);
topLayout->addMultiCellWidget(categoryGroup,0,0,0,1);
@@ -1327,5 +1332,5 @@ void KOPrefsDialog::setupPrinterTab()
DesktopIcon("fileprint",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(mPrinterTab,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(mPrinterTab,5,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -1337,8 +1342,8 @@ void KOPrefsDialog::setupGroupSchedulingTab()
{
#if 0
- QFrame *topFrame = addPage(i18n("Group Scheduling"),0,
+ Q3Frame *topFrame = addPage(i18n("Group Scheduling"),0,
DesktopIcon("personal",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -1363,5 +1368,5 @@ void KOPrefsDialog::setupGroupSchedulingTab()
topLayout->addMultiCellWidget(new QLabel(i18n("Additional email addresses:"),topFrame),2,2,0,1);
- mAMails = new QListView(topFrame);
+ mAMails = new Q3ListView(topFrame);
mAMails->addColumn(i18n("Email"),300);
topLayout->addMultiCellWidget(mAMails,3,3,0,1);
@@ -1381,5 +1386,5 @@ void KOPrefsDialog::setupGroupSchedulingTab()
connect(del, SIGNAL( clicked() ), this, SLOT(removeItem()) );
connect(aEmailsEdit,SIGNAL( textChanged(const QString&) ), this,SLOT(updateItem()));
- connect(mAMails,SIGNAL(selectionChanged(QListViewItem *)),SLOT(updateInput()));
+ connect(mAMails,SIGNAL(selectionChanged(Q3ListViewItem *)),SLOT(updateInput()));
#endif
}
@@ -1388,8 +1393,8 @@ void KOPrefsDialog::setupGroupAutomationTab()
{
return;
- QFrame *topFrame = addPage(i18n("Group Automation"),0,
+ Q3Frame *topFrame = addPage(i18n("Group Automation"),0,
DesktopIcon("personal",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,1);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
@@ -1544,5 +1549,5 @@ void KOPrefsDialog::usrWriteConfig()
//KOPrefs::instance()->mAllDaySize = mHourSizeSlider->value();
- QDictIterator<QColor> it(mCategoryDict);
+ Q3DictIterator<QColor> it(mCategoryDict);
while (it.current()) {
KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current());
@@ -1684,12 +1689,12 @@ void KOPrefsDialog::updateTimezoneOffset( int index )
void KOPrefsDialog::setupTimeZoneTab()
{
- QFrame *topFrame = addPage(i18n("Time Zone"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Time Zone"),0,0);
// DesktopIcon("clock",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,2);
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
- QHBox *timeZoneBox = new QHBox( topFrame );
+ Q3HBox *timeZoneBox = new Q3HBox( topFrame );
topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 );
diff --git a/kmicromail/koprefsdialog.h b/kmicromail/koprefsdialog.h
index 7fa9261..042af3f 100644
--- a/kmicromail/koprefsdialog.h
+++ b/kmicromail/koprefsdialog.h
@@ -24,8 +24,10 @@
#define _KOPREFSDIALOG_H
-#include <qframe.h>
-#include <qdict.h>
+#include <q3frame.h>
+#include <q3dict.h>
#include <qcolor.h>
-#include <qlistview.h>
+#include <q3listview.h>
+//Added by qt3to4:
+#include <QLabel>
#include <kdialogbase.h>
@@ -120,5 +122,5 @@ protected:
KPrefsWidBool *mEnableProjectView;
- QFrame *mPrinterTab;
+ Q3Frame *mPrinterTab;
QLineEdit *nameEdit;
@@ -147,5 +149,5 @@ protected:
QComboBox *mCategoryCombo;
KColorButton *mCategoryButton;
- QDict<QColor> mCategoryDict;
+ Q3Dict<QColor> mCategoryDict;
QSlider *mHourSizeSlider;
diff --git a/kmicromail/libetpan/libetpan.pro b/kmicromail/libetpan/libetpan.pro
index dfafa07..4b2654e 100644
--- a/kmicromail/libetpan/libetpan.pro
+++ b/kmicromail/libetpan/libetpan.pro
@@ -4,5 +4,5 @@
TEMPLATE = lib
-TARGET = microlibetpan
+TARGET = xmicrolibetpan
OBJECTS_DIR = obj
diff --git a/kmicromail/libetpan/libetpanE.pro b/kmicromail/libetpan/libetpanE.pro
index 7f37948..ea22692 100644
--- a/kmicromail/libetpan/libetpanE.pro
+++ b/kmicromail/libetpan/libetpanE.pro
@@ -4,5 +4,5 @@
TEMPLATE = lib
-TARGET = microlibetpan
+TARGET = xmicrolibetpan
OBJECTS_DIR = obj/$(PLATFORM)
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp
index 870985e..746d2ae 100644
--- a/kmicromail/libmailwrapper/abstractmail.cpp
+++ b/kmicromail/libmailwrapper/abstractmail.cpp
@@ -9,11 +9,13 @@
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qapplication.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <klocale.h>
#include <kdecore/kstandarddirs.h>
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <stdlib.h>
#include <libetpan/mailmime_content.h>
@@ -112,8 +114,8 @@ QString AbstractMail::gen_attachment_id()
{
QFile file( "/proc/sys/kernel/random/uuid" );
- if (!file.open(IO_ReadOnly ) )
+ if (!file.open(QIODevice::ReadOnly ) )
return QString::null;
- QTextStream stream(&file);
+ Q3TextStream stream(&file);
return "{" + stream.read().stripWhiteSpace() + "}";
@@ -139,8 +141,8 @@ QString AbstractMail::draftFolder()
/* temporary - will be removed when implemented in all classes */
-void AbstractMail::deleteMails(const QString &,const QValueList<Opie::Core::OSmartPointer<RecMail> > &)
+void AbstractMail::deleteMails(const QString &,const Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &)
{
}
-void AbstractMail::deleteMailList(const QValueList<RecMailP>&target)
+void AbstractMail::deleteMailList(const Q3ValueList<RecMailP>&target)
{
//qDebug("AbstractMail::deleteMailList:: Please reimplement! ");
@@ -148,5 +150,5 @@ void AbstractMail::deleteMailList(const QValueList<RecMailP>&target)
int iii = 0;
int count = target.count();
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Deleting ..."));
wid.show();
@@ -178,5 +180,5 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe
return;
}
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
listMessages(fromFolder->getName(),t,acc->getMaxMailSize() );
if ( t.count() == 0 ) {
@@ -188,8 +190,8 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe
qDebug(i18n("%1 :Downloading mails..."). arg(acc->getAccountName()));
qApp->processEvents();
- QValueList<RecMailP> e;
+ Q3ValueList<RecMailP> e;
targetMail->listMessages(lfName,e,acc->getMaxMailSize() );
//qDebug("target has mails %d ", e.count());
- QValueList<RecMailP> n;
+ Q3ValueList<RecMailP> n;
int iii = 0;
int count = t.count();
@@ -222,5 +224,5 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe
#if 0
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
listMessages(fromFolder->getName(),t, maxSizeInKb);
mvcpMailList( t,targetFolder,targetWrapper,moveit);
@@ -231,10 +233,10 @@ void AbstractMail::mvcpAllMails(const FolderP&fromFolder,
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit, int maxSizeInKb)
{
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
listMessages(fromFolder->getName(),t, maxSizeInKb);
mvcpMailList( t,targetFolder,targetWrapper,moveit);
}
-void AbstractMail::mvcpMailList(const QValueList<RecMailP>& t,
+void AbstractMail::mvcpMailList(const Q3ValueList<RecMailP>& t,
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit)
{
@@ -247,5 +249,5 @@ void AbstractMail::mvcpMailList(const QValueList<RecMailP>& t,
// Global::statusMessage(i18n("Copy2 message %1").arg(iii)); displaye
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Copying..."));
wid.show();
diff --git a/kmicromail/libmailwrapper/abstractmail.h b/kmicromail/libmailwrapper/abstractmail.h
index 2069ca1..f606b1f 100644
--- a/kmicromail/libmailwrapper/abstractmail.h
+++ b/kmicromail/libmailwrapper/abstractmail.h
@@ -8,4 +8,6 @@
#include <qobject.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <opie2/osmartpointer.h>
#include "mailtypes.h"
@@ -26,6 +28,6 @@ public:
AbstractMail(){};
virtual ~AbstractMail(){}
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders()=0;
- virtual void listMessages(const QString & mailbox,QValueList<RecMailP>&target, int sizeInKb = 0 )=0;
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders()=0;
+ virtual void listMessages(const QString & mailbox,Q3ValueList<RecMailP>&target, int sizeInKb = 0 )=0;
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX")=0;
virtual RecBodyP fetchBody(const RecMailP&mail)=0;
@@ -36,8 +38,8 @@ public:
virtual void deleteMail(const RecMailP&mail)=0;
- virtual void deleteMailList(const QValueList<RecMailP>&target);
+ virtual void deleteMailList(const Q3ValueList<RecMailP>&target);
virtual void answeredMail(const RecMailP&mail)=0;
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&)=0;
- virtual void deleteMails(const QString & FolderName,const QValueList<Opie::Core::OSmartPointer<RecMail> >&target);
+ virtual void deleteMails(const QString & FolderName,const Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target);
virtual int deleteMbox(const Opie::Core::OSmartPointer<Folder>&)=0;
virtual void storeMessage(const char*msg,size_t length, const QString&folder)=0;
@@ -45,5 +47,5 @@ public:
virtual void mvcpAllMails(const Opie::Core::OSmartPointer<Folder>&fromFolder,
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit, int sizeInKb = 0);
- virtual void mvcpMailList(const QValueList<RecMailP>& t,
+ virtual void mvcpMailList(const Q3ValueList<RecMailP>& t,
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit);
virtual void mvcpMail(const RecMailP&mail,const QString&targetFolder,AbstractMail*targetWrapper,bool moveit);
diff --git a/kmicromail/libmailwrapper/generatemail.cpp b/kmicromail/libmailwrapper/generatemail.cpp
index 2d213fe..ddad21b 100644
--- a/kmicromail/libmailwrapper/generatemail.cpp
+++ b/kmicromail/libmailwrapper/generatemail.cpp
@@ -8,4 +8,6 @@
#include <stdlib.h>
#include <qfileinfo.h>
+//Added by qt3to4:
+#include <Q3CString>
using namespace Opie::Core;
@@ -229,5 +231,5 @@ mailmime *Generatemail::buildTxtPart(const QString&str ) {
mailmime_parameter *param;
int err;
- QCString __str;
+ Q3CString __str;
//qDebug(" Generatemail::buildTxtPart %s", str.latin1());
param = mailmime_parameter_new( strdup( "charset" ),
@@ -253,5 +255,5 @@ mailmime *Generatemail::buildTxtPart(const QString&str ) {
{
//__str = str.utf8();
- __str = QCString (str.latin1());
+ __str = Q3CString (str.latin1());
err = mailmime_set_body_text( txtPart, strdup(__str.data()), __str.length() );
}
diff --git a/kmicromail/libmailwrapper/genericwrapper.cpp b/kmicromail/libmailwrapper/genericwrapper.cpp
index 0b6adf7..633ab42 100644
--- a/kmicromail/libmailwrapper/genericwrapper.cpp
+++ b/kmicromail/libmailwrapper/genericwrapper.cpp
@@ -7,4 +7,6 @@
#include <kglobal.h>
#include <kstandarddirs.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -183,5 +185,5 @@ QString Genericwrapper::getencoding(mailmime_mechanism*aEnc)
}
-void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rec,int current_count)
+void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,Q3ValueList<int>recList,unsigned int current_rec,int current_count)
{
if (current_rec >= 10) {
@@ -201,5 +203,5 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
case MAILMIME_SINGLE:
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
countlist.append(current_count);
r = mailmessage_fetch_section(message,mime,&data,&len);
@@ -251,5 +253,5 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
unsigned int ccount = 1;
mailmime*cbody=0;
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
for (cur = clist_begin(mime->mm_data.mm_multipart.mm_mp_list) ; cur != NULL ; cur = clist_next(cur)) {
cbody = (mailmime*)clist_content(cur);
@@ -271,5 +273,5 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
case MAILMIME_MESSAGE:
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
countlist.append(current_count);
/* the own header is always at recursion 0 - we don't need that */
@@ -303,5 +305,5 @@ RecBodyP Genericwrapper::parseMail( mailmessage * msg )
//memset(&fields, 0, sizeof(struct mailmime_single_fields));
err = mailmessage_get_bodystructure(msg,&mime);
- QValueList<int>recList;
+ Q3ValueList<int>recList;
traverseBody(body,msg,mime,recList);
return body;
@@ -448,5 +450,5 @@ QStringList Genericwrapper::parseInreplies(mailimf_in_reply_to * in_replies)
}
-void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to, int maxSizeInKb)
+void Genericwrapper::parseList(Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to, int maxSizeInKb)
{
int r;
diff --git a/kmicromail/libmailwrapper/genericwrapper.h b/kmicromail/libmailwrapper/genericwrapper.h
index c35a6da..a50161d 100644
--- a/kmicromail/libmailwrapper/genericwrapper.h
+++ b/kmicromail/libmailwrapper/genericwrapper.h
@@ -6,4 +6,6 @@
#include <qmap.h>
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <libetpan/clist.h>
@@ -52,9 +54,9 @@ protected:
QString parseAddressList( mailimf_address_list *list );
- void traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rek=0,int current_count=1);
+ void traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,Q3ValueList<int>recList,unsigned int current_rek=0,int current_count=1);
static void fillSingleBody(RecPartP&target,mailmessage*message,mailmime*mime);
static void fillParameters(RecPartP&target,clist*parameters);
static QString getencoding(mailmime_mechanism*aEnc);
- virtual void parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to=false, int maxSizeInKb = 0);
+ virtual void parseList(Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to=false, int maxSizeInKb = 0);
QStringList parseInreplies(mailimf_in_reply_to * in_replies);
diff --git a/kmicromail/libmailwrapper/imapwrapper.cpp b/kmicromail/libmailwrapper/imapwrapper.cpp
index 4f0c849..f73f4cc 100644
--- a/kmicromail/libmailwrapper/imapwrapper.cpp
+++ b/kmicromail/libmailwrapper/imapwrapper.cpp
@@ -4,8 +4,10 @@
#include <qpe/global.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include "imapwrapper.h"
#include "mailtypes.h"
#include "logindialog.h"
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include "genericwrapper.h"
#include <kglobal.h>
@@ -240,5 +242,5 @@ void IMAPwrapper::logout()
}
-void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSmartPointer<RecMail> > &target , int maxSizeInKb)
+void IMAPwrapper::listMessages(const QString&mailbox,Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target , int maxSizeInKb)
{
@@ -321,5 +323,5 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma
}
-QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
{
const char *path, *mask;
@@ -330,5 +332,5 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
mailimap_mbx_list_flags*bflags = 0;
- QValueList<FolderP>* folders = new QValueList<FolderP>();
+ Q3ValueList<FolderP>* folders = new Q3ValueList<FolderP>();
login();
if (!m_imap) {
@@ -614,5 +616,5 @@ RecBodyP IMAPwrapper::fetchBody(const RecMailP&mail)
msg_att = (mailimap_msg_att*)current->data;
mailimap_msg_att_item*item = (mailimap_msg_att_item*)msg_att->att_list->first->data;
- QValueList<int> path;
+ Q3ValueList<int> path;
body_desc = item->att_data.att_static->att_data.att_body;
traverseBody(mail,body_desc,body,0,path);
@@ -665,5 +667,5 @@ QStringList IMAPwrapper::address_list_to_stringlist(clist*list)
}
-encodedString*IMAPwrapper::fetchRawPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call)
+encodedString*IMAPwrapper::fetchRawPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call)
{
encodedString*res=new encodedString;
@@ -739,5 +741,5 @@ encodedString*IMAPwrapper::fetchRawPart(const RecMailP&mail,const QValueList<int
current_count means the position inside the internal loop! */
void IMAPwrapper::traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&target_body,
- int current_recursion,QValueList<int>recList,int current_count)
+ int current_recursion,Q3ValueList<int>recList,int current_count)
{
if (!body || current_recursion>=10) {
@@ -747,5 +749,5 @@ void IMAPwrapper::traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&t
case MAILIMAP_BODY_1PART:
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
countlist.append(current_count);
RecPartP currentPart = new RecPart();
@@ -800,5 +802,5 @@ void IMAPwrapper::traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&t
case MAILIMAP_BODY_MPART:
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
clistcell*current=0;
mailimap_body*current_body=0;
@@ -986,5 +988,5 @@ void IMAPwrapper::fillBodyFields(RecPartP&target_part,mailimap_body_fields*which
target_part->setSize(which->bd_size);
}
-void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target)
+void IMAPwrapper::deleteMailList(const Q3ValueList<RecMailP>&target)
{
//#if 0
@@ -1006,5 +1008,5 @@ void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target)
progress( i18n("Delete"));
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Deleting ..."));
wid.show();
@@ -1115,5 +1117,5 @@ void IMAPwrapper::answeredMail(const RecMailP&mail)
}
-QString IMAPwrapper::fetchTextPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call,const QString&enc)
+QString IMAPwrapper::fetchTextPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call,const QString&enc)
{
QString body("");
@@ -1300,5 +1302,5 @@ encodedString* IMAPwrapper::fetchRawBody(const RecMailP&mail)
{
// dummy
- QValueList<int> path;
+ Q3ValueList<int> path;
return fetchRawPart(mail,path,false);
}
diff --git a/kmicromail/libmailwrapper/imapwrapper.h b/kmicromail/libmailwrapper/imapwrapper.h
index 31c60a8..d3d3ecd 100644
--- a/kmicromail/libmailwrapper/imapwrapper.h
+++ b/kmicromail/libmailwrapper/imapwrapper.h
@@ -4,4 +4,6 @@
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include "mailwrapper.h"
#include "abstractmail.h"
@@ -25,10 +27,10 @@ public:
IMAPwrapper( IMAPaccount *a );
virtual ~IMAPwrapper();
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
- virtual void listMessages(const QString & mailbox,QValueList<Opie::Core::OSmartPointer<RecMail> >&target , int sizeInKb = 0);
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox,Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target , int sizeInKb = 0);
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
virtual void deleteMail(const RecMailP&mail);
- void deleteMailList(const QValueList<RecMailP>&target);
+ void deleteMailList(const Q3ValueList<RecMailP>&target);
virtual void answeredMail(const RecMailP&mail);
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&folder);
@@ -60,6 +62,6 @@ protected:
bool start_tls(bool force=true);
- virtual QString fetchTextPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call=false,const QString&enc="");
- virtual encodedString*fetchRawPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call);
+ virtual QString fetchTextPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call=false,const QString&enc="");
+ virtual encodedString*fetchRawPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call);
int selectMbox(const QString&mbox);
@@ -69,5 +71,5 @@ protected:
void fillSingleMsgPart(RecPartP&target_part,mailimap_body_type_msg*which);
void fillMultiPart(RecPartP&target_part,mailimap_body_type_mpart*which);
- void traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&target_body,int current_recursion,QValueList<int>recList,int current_count=1);
+ void traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&target_body,int current_recursion,Q3ValueList<int>recList,int current_count=1);
/* just helpers */
diff --git a/kmicromail/libmailwrapper/libmailwrapper.pro b/kmicromail/libmailwrapper/libmailwrapper.pro
index 646630b..6b595ab 100644
--- a/kmicromail/libmailwrapper/libmailwrapper.pro
+++ b/kmicromail/libmailwrapper/libmailwrapper.pro
@@ -39,5 +39,6 @@ SOURCES = imapwrapper.cpp \
../qpe/global.cpp
-INTERFACES = logindialogui.ui \
+#The following line was changed from INTERFACES to FORMS3 by qt3to4
+FORMS3 = logindialogui.ui \
sendmailprogressui.ui
@@ -64,2 +65,7 @@ OBJECTS_DIR = obj/win
MOC_DIR = moc/win
}
+#The following line was inserted by qt3to4
+QT += xml qt3support
+#The following line was inserted by qt3to4
+CONFIG += uic3
+
diff --git a/kmicromail/libmailwrapper/logindialog.cpp b/kmicromail/libmailwrapper/logindialog.cpp
index 31b75d0..d1f4b5d 100644
--- a/kmicromail/libmailwrapper/logindialog.cpp
+++ b/kmicromail/libmailwrapper/logindialog.cpp
@@ -7,5 +7,5 @@
//using namespace Opie::Core;
-LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, WFlags flags )
+LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: LoginDialogUI( parent, name, modal, flags )
{
diff --git a/kmicromail/libmailwrapper/logindialog.h b/kmicromail/libmailwrapper/logindialog.h
index f406f2c..a18daa5 100644
--- a/kmicromail/libmailwrapper/logindialog.h
+++ b/kmicromail/libmailwrapper/logindialog.h
@@ -9,5 +9,5 @@ class LoginDialog : public LoginDialogUI
public:
- LoginDialog(const QString&user,const QString&pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 );
+ LoginDialog(const QString&user,const QString&pass, QWidget *parent = 0, const char *name = 0, bool modal = false, Qt::WFlags flags = 0 );
QString getUser() { return _user; }
QString getPassword() { return _pass; }
diff --git a/kmicromail/libmailwrapper/mailtypes.cpp b/kmicromail/libmailwrapper/mailtypes.cpp
index 70a0ab5..84ccf9f 100644
--- a/kmicromail/libmailwrapper/mailtypes.cpp
+++ b/kmicromail/libmailwrapper/mailtypes.cpp
@@ -4,4 +4,6 @@
#include <stdlib.h>
+//Added by qt3to4:
+#include <Q3ValueList>
using namespace Opie::Core;
@@ -284,10 +286,10 @@ const QString RecPart::searchParamter(const QString&key)const
}
-void RecPart::setPositionlist(const QValueList<int>&poslist)
+void RecPart::setPositionlist(const Q3ValueList<int>&poslist)
{
m_poslist = poslist;
}
-const QValueList<int>& RecPart::Positionlist()const
+const Q3ValueList<int>& RecPart::Positionlist()const
{
return m_poslist;
@@ -324,5 +326,5 @@ const QString& RecBody::Bodytext()const
}
-void RecBody::setParts(const QValueList<RecPartP>&parts)
+void RecBody::setParts(const Q3ValueList<RecPartP>&parts)
{
m_PartsList.clear();
@@ -330,5 +332,5 @@ void RecBody::setParts(const QValueList<RecPartP>&parts)
}
-const QValueList<RecPartP>& RecBody::Parts()const
+const Q3ValueList<RecPartP>& RecBody::Parts()const
{
return m_PartsList;
diff --git a/kmicromail/libmailwrapper/mailtypes.h b/kmicromail/libmailwrapper/mailtypes.h
index 97f10d7..ac7f8da 100644
--- a/kmicromail/libmailwrapper/mailtypes.h
+++ b/kmicromail/libmailwrapper/mailtypes.h
@@ -15,5 +15,5 @@
#include <qstringlist.h>
#include <qmap.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
class AbstractMail;
@@ -110,5 +110,5 @@ protected:
part_plist_t m_Parameters;
/* describes the position in the mail */
- QValueList<int> m_poslist;
+ Q3ValueList<int> m_poslist;
public:
@@ -137,6 +137,6 @@ public:
void addParameter(const QString&key,const QString&value);
const QString searchParamter(const QString&key)const;
- void setPositionlist(const QValueList<int>&poslist);
- const QValueList<int>& Positionlist()const;
+ void setPositionlist(const Q3ValueList<int>&poslist);
+ const Q3ValueList<int>& Positionlist()const;
};
@@ -148,5 +148,5 @@ protected:
QString m_BodyText;
QString mCharset;
- QValueList<RecPartP> m_PartsList;
+ Q3ValueList<RecPartP> m_PartsList;
RecPartP m_description;
@@ -163,6 +163,6 @@ public:
const RecPartP& Description()const;
- void setParts(const QValueList<RecPartP>&parts);
- const QValueList<RecPartP>& Parts()const;
+ void setParts(const Q3ValueList<RecPartP>&parts);
+ const Q3ValueList<RecPartP>& Parts()const;
void addPart(const RecPartP&part);
};
diff --git a/kmicromail/libmailwrapper/mailwrapper.cpp b/kmicromail/libmailwrapper/mailwrapper.cpp
index 2ee1ab3..9c299e8 100644
--- a/kmicromail/libmailwrapper/mailwrapper.cpp
+++ b/kmicromail/libmailwrapper/mailwrapper.cpp
@@ -6,4 +6,6 @@
#include <string.h>
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3CString>
#include "mailwrapper.h"
@@ -82,6 +84,6 @@ QString IMAPFolder::decodeFolderName( const QString &name )
unsigned char base64[256], utf8[6];
unsigned long srcPtr = 0;
- QCString dst = "";
- QCString src = name.ascii();
+ Q3CString dst = "";
+ Q3CString src = name.ascii();
/* initialize modified base64 decoding table */
@@ -93,7 +95,7 @@ QString IMAPFolder::decodeFolderName( const QString &name )
/* loop until end of string */
while (srcPtr < src.length ()) {
- c = src[srcPtr++];
+ c = src.at(srcPtr++);
/* deal with literal characters and &- */
- if (c != '&' || src[srcPtr] == '-') {
+ if (c != '&' || src.at(srcPtr) == '-') {
/* encode literally */
dst += c;
@@ -106,5 +108,5 @@ QString IMAPFolder::decodeFolderName( const QString &name )
bitcount = 0;
ucs4 = 0;
- while ((c = base64[(unsigned char) src[srcPtr]]) != UNDEFINED) {
+ while ((c = base64[(unsigned char) src.at(srcPtr)]) != UNDEFINED) {
++srcPtr;
bitbuf = (bitbuf << 6) | c;
@@ -150,5 +152,5 @@ QString IMAPFolder::decodeFolderName( const QString &name )
}
/* skip over trailing '-' in modified UTF-7 encoding */
- if (src[srcPtr] == '-')
+ if (src.at(srcPtr) == '-')
++srcPtr;
}
diff --git a/kmicromail/libmailwrapper/mailwrapper.h b/kmicromail/libmailwrapper/mailwrapper.h
index 3e8b51f..bebabf4 100644
--- a/kmicromail/libmailwrapper/mailwrapper.h
+++ b/kmicromail/libmailwrapper/mailwrapper.h
@@ -7,4 +7,6 @@
#include <qdatetime.h>
#include <qfileinfo.h>
+//Added by qt3to4:
+#include <QPixmap>
#include <kiconloader.h>
@@ -62,5 +64,5 @@ public:
virtual ~Mail(){}
void addAttachment( Attachment *att ) { attList.append( att ); }
- const QList<Attachment>& getAttachments()const { return attList; }
+ const QList<Attachment*>& getAttachments()const { return attList; }
void removeAttachment( Attachment *att ) { attList.remove( att ); }
const QString&getName()const { return name; }
@@ -87,5 +89,5 @@ public:
private:
- QList<Attachment> attList;
+ QList<Attachment*> attList;
QString name, mail, to, cc, bcc, reply, subject, message, charset;
QStringList m_in_reply_to;
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
@@ -4,4 +4,6 @@
#include <libetpan/libetpan.h>
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
#include <klocale.h>
@@ -24,5 +26,5 @@ MBOXwrapper::~MBOXwrapper()
}
-void MBOXwrapper::listMessages(const QString & mailbox, QValueList<RecMailP> &target )
+void MBOXwrapper::listMessages(const QString & mailbox, Q3ValueList<RecMailP> &target )
{
mailstorage*storage = mailstorage_new(NULL);
@@ -49,7 +51,7 @@ void MBOXwrapper::listMessages(const QString & mailbox, QValueList<RecMailP> &ta
}
-QValueList<Opie::Core::OSmartPointer<Folder> >* MBOXwrapper::listFolders()
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* MBOXwrapper::listFolders()
{
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<Opie::Core::OSmartPointer<Folder> >();
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<Opie::Core::OSmartPointer<Folder> >();
QDir dir(MBOXPath);
if (!dir.exists()) return folders;
@@ -218,5 +220,5 @@ encodedString* MBOXwrapper::fetchRawBody(const RecMailP&mail)
}
-void MBOXwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> &target)
+void MBOXwrapper::deleteMails(const QString & mailbox,const Q3ValueList<RecMailP> &target)
{
QString p = MBOXPath+"/";
@@ -232,9 +234,9 @@ void MBOXwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP>
}
-void MBOXwrapper::deleteMails(mailmbox_folder*f,const QValueList<RecMailP> &target)
+void MBOXwrapper::deleteMails(mailmbox_folder*f,const Q3ValueList<RecMailP> &target)
{
if (!f) return;
int r;
- QValueList<RecMailP>::ConstIterator it;
+ Q3ValueList<RecMailP>::ConstIterator it;
for (it=target.begin(); it != target.end();++it) {
r = mailmbox_delete_msg(f,(*it)->getNumber());
diff --git a/kmicromail/libmailwrapper/mboxwrapper.h b/kmicromail/libmailwrapper/mboxwrapper.h
index d03940f..e658a71 100644
--- a/kmicromail/libmailwrapper/mboxwrapper.h
+++ b/kmicromail/libmailwrapper/mboxwrapper.h
@@ -4,4 +4,6 @@
#include "genericwrapper.h"
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
class encodedString;
@@ -16,6 +18,6 @@ public:
virtual ~MBOXwrapper();
- virtual void listMessages(const QString & mailbox, QValueList<RecMailP>&target );
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox, Q3ValueList<RecMailP>&target );
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
@@ -33,5 +35,5 @@ public:
virtual encodedString* fetchRawBody(const RecMailP&mail);
- virtual void deleteMails(const QString & FolderName,const QValueList<RecMailP> &target);
+ virtual void deleteMails(const QString & FolderName,const Q3ValueList<RecMailP> &target);
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&);
virtual MAILLIB::ATYPE getType()const;
@@ -40,5 +42,5 @@ public:
protected:
- static void deleteMails(mailmbox_folder*f,const QValueList<RecMailP> &target);
+ static void deleteMails(mailmbox_folder*f,const Q3ValueList<RecMailP> &target);
QString MBOXPath;
QString MBOXName;
diff --git a/kmicromail/libmailwrapper/mhwrapper.cpp b/kmicromail/libmailwrapper/mhwrapper.cpp
index 787e85d..4cd7a94 100644
--- a/kmicromail/libmailwrapper/mhwrapper.cpp
+++ b/kmicromail/libmailwrapper/mhwrapper.cpp
@@ -6,4 +6,6 @@
#include <qdir.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
#include <qpe/global.h>
@@ -65,5 +67,5 @@ MHwrapper::~MHwrapper()
}
-void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
+void MHwrapper::listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
{
init_storage();
@@ -81,7 +83,7 @@ void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSm
}
-QValueList<Opie::Core::OSmartPointer<Folder> >* MHwrapper::listFolders()
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* MHwrapper::listFolders()
{
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<Opie::Core::OSmartPointer<Folder> >();
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<Opie::Core::OSmartPointer<Folder> >();
/* this is needed! */
if (m_storage) mailstorage_disconnect(m_storage);
@@ -256,5 +258,5 @@ encodedString* MHwrapper::fetchRawBody(const RecMailP&mail)
}
-void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> &target)
+void MHwrapper::deleteMails(const QString & mailbox,const Q3ValueList<RecMailP> &target)
{
QString f = buildPath(mailbox);
@@ -264,5 +266,5 @@ void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> &
return;
}
- QValueList<RecMailP>::ConstIterator it;
+ Q3ValueList<RecMailP>::ConstIterator it;
for (it=target.begin(); it!=target.end();++it) {
r = mailsession_remove_message(m_storage->sto_session,(*it)->getNumber());
diff --git a/kmicromail/libmailwrapper/mhwrapper.h b/kmicromail/libmailwrapper/mhwrapper.h
index 36a443a..6151ff1 100644
--- a/kmicromail/libmailwrapper/mhwrapper.h
+++ b/kmicromail/libmailwrapper/mhwrapper.h
@@ -7,4 +7,6 @@
#include "genericwrapper.h"
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
class encodedString;
@@ -17,6 +19,6 @@ public:
virtual ~MHwrapper();
- virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
@@ -37,5 +39,5 @@ public:
virtual encodedString* fetchRawBody(const RecMailP&mail);
- virtual void deleteMails(const QString & FolderName,const QValueList<Opie::Core::OSmartPointer<RecMail> > &target);
+ virtual void deleteMails(const QString & FolderName,const Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target);
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&);
virtual MAILLIB::ATYPE getType()const;
diff --git a/kmicromail/libmailwrapper/nntpwrapper.cpp b/kmicromail/libmailwrapper/nntpwrapper.cpp
index 93cd2b5..b328ecd 100644
--- a/kmicromail/libmailwrapper/nntpwrapper.cpp
+++ b/kmicromail/libmailwrapper/nntpwrapper.cpp
@@ -5,4 +5,6 @@
#include <qfile.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
@@ -61,5 +63,5 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) {
msg_cache.remove();
}
- msg_cache.open(IO_ReadWrite|IO_Truncate);
+ msg_cache.open(QIODevice::ReadWrite|QIODevice::Truncate);
last_msg_id = mail->getNumber();
err = mailsession_get_message(m_nntp->sto_session, mail->getNumber(), &mailmsg);
@@ -68,5 +70,5 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) {
} else {
QString msg="";
- msg_cache.open(IO_ReadOnly);
+ msg_cache.open(QIODevice::ReadOnly);
message = new char[4096];
memset(message,0,4096);
@@ -100,5 +102,5 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) {
-void NNTPwrapper::listMessages(const QString & which, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb)
+void NNTPwrapper::listMessages(const QString & which, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb)
{
login();
@@ -187,7 +189,7 @@ void NNTPwrapper::logout()
}
-QValueList<Opie::Core::OSmartPointer<Folder> >* NNTPwrapper::listFolders() {
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* NNTPwrapper::listFolders() {
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<Opie::Core::OSmartPointer<Folder> >();
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<Opie::Core::OSmartPointer<Folder> >();
QStringList groups;
if (account) {
diff --git a/kmicromail/libmailwrapper/nntpwrapper.h b/kmicromail/libmailwrapper/nntpwrapper.h
index 8c54f12..7c8e671 100644
--- a/kmicromail/libmailwrapper/nntpwrapper.h
+++ b/kmicromail/libmailwrapper/nntpwrapper.h
@@ -6,4 +6,6 @@
#include "genericwrapper.h"
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <libetpan/clist.h>
@@ -22,7 +24,7 @@ public:
/* mailbox will be ignored */
- virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
+ virtual void listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
/* should only get the subscribed one */
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
/* mailbox will be ignored */
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
diff --git a/kmicromail/libmailwrapper/pop3wrapper.cpp b/kmicromail/libmailwrapper/pop3wrapper.cpp
index 2888f7c..ebeed71 100644
--- a/kmicromail/libmailwrapper/pop3wrapper.cpp
+++ b/kmicromail/libmailwrapper/pop3wrapper.cpp
@@ -10,6 +10,8 @@
#include <qpe/global.h>
#include <qfile.h>
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3ValueList>
/* we don't fetch messages larger than 5 MB */
@@ -63,5 +65,5 @@ RecBodyP POP3wrapper::fetchBody( const RecMailP &mail ) {
msg_cache.remove();
}
- msg_cache.open(IO_ReadWrite|IO_Truncate);
+ msg_cache.open(QIODevice::ReadWrite|QIODevice::Truncate);
last_msg_id = mail->getNumber();
err = mailsession_get_message(m_pop3->sto_session, mail->getNumber(), &mailmsg);
@@ -70,5 +72,5 @@ RecBodyP POP3wrapper::fetchBody( const RecMailP &mail ) {
} else {
QString msg="";
- msg_cache.open(IO_ReadOnly);
+ msg_cache.open(QIODevice::ReadOnly);
message = new char[4096];
memset(message,0,4096);
@@ -101,5 +103,5 @@ RecBodyP POP3wrapper::fetchBody( const RecMailP &mail ) {
}
-void POP3wrapper::listMessages(const QString &, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
+void POP3wrapper::listMessages(const QString &, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
{
login();
@@ -188,6 +190,6 @@ void POP3wrapper::logout()
-QValueList<Opie::Core::OSmartPointer<Folder> >* POP3wrapper::listFolders() {
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<FolderP>();
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* POP3wrapper::listFolders() {
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<FolderP>();
FolderP inb=new Folder("INBOX","/");
folders->append(inb);
@@ -195,5 +197,5 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* POP3wrapper::listFolders() {
}
-void POP3wrapper::deleteMailList(const QValueList<RecMailP>&target)
+void POP3wrapper::deleteMailList(const Q3ValueList<RecMailP>&target)
{
login();
@@ -203,5 +205,5 @@ void POP3wrapper::deleteMailList(const QValueList<RecMailP>&target)
int count = target.count();
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Deleting ..."));
wid.show();
@@ -247,5 +249,5 @@ int POP3wrapper::deleteAllMail(const FolderP&) {
- QProgressBar wid ( result );
+ Q3ProgressBar wid ( result );
wid.setCaption( i18n("Deleting ..."));
wid.show();
diff --git a/kmicromail/libmailwrapper/pop3wrapper.h b/kmicromail/libmailwrapper/pop3wrapper.h
index ebc2fc7..a077877 100644
--- a/kmicromail/libmailwrapper/pop3wrapper.h
+++ b/kmicromail/libmailwrapper/pop3wrapper.h
@@ -6,4 +6,6 @@
#include "genericwrapper.h"
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
class encodedString;
@@ -19,11 +21,11 @@ public:
virtual ~POP3wrapper();
/* mailbox will be ignored */
- virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
+ virtual Q3ValueList<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 deleteMailList(const QValueList<RecMailP>&target);
+ virtual void deleteMailList(const Q3ValueList<RecMailP>&target);
virtual void answeredMail(const RecMailP&mail);
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&);
diff --git a/kmicromail/libmailwrapper/sendmailprogress.cpp b/kmicromail/libmailwrapper/sendmailprogress.cpp
index 20dfe9b..6cd6409 100644
--- a/kmicromail/libmailwrapper/sendmailprogress.cpp
+++ b/kmicromail/libmailwrapper/sendmailprogress.cpp
@@ -1,4 +1,4 @@
#include "sendmailprogress.h"
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qlabel.h>
#include <klocale.h>
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp
index 9436d43..fc01528 100644
--- a/kmicromail/libmailwrapper/settings.cpp
+++ b/kmicromail/libmailwrapper/settings.cpp
@@ -3,5 +3,5 @@
#include <qtextcodec.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qfile.h>
@@ -377,9 +377,9 @@ QString SMTPaccount::getSignature()
QFile file( signature );
- if (!file.open( IO_ReadOnly ) ) {
+ if (!file.open( QIODevice::ReadOnly ) ) {
return QString();
}
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts.setCodec( QTextCodec::codecForName("utf8") );
QString text = ts.read();
@@ -400,9 +400,9 @@ void SMTPaccount::setSignature( QString b )
}
QFile fileIn( signature );
- if (!fileIn.open( IO_WriteOnly ) ) {
+ if (!fileIn.open( QIODevice::WriteOnly ) ) {
qDebug("OM: Cannot write signature file %s ", signature.latin1() );
return ;
}
- QTextStream tsIn( &fileIn );
+ Q3TextStream tsIn( &fileIn );
tsIn.setCodec( QTextCodec::codecForName("utf8") );
tsIn << b ;
diff --git a/kmicromail/libmailwrapper/smtpwrapper.cpp b/kmicromail/libmailwrapper/smtpwrapper.cpp
index 7c813cc..2df55ff 100644
--- a/kmicromail/libmailwrapper/smtpwrapper.cpp
+++ b/kmicromail/libmailwrapper/smtpwrapper.cpp
@@ -10,4 +10,6 @@
#include <qapplication.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
#ifndef DESKTOP_VERSION
@@ -435,6 +437,6 @@ bool SMTPwrapper::flushOutbox() {
}
QString oldPw, oldUser;
- QValueList<RecMailP> mailsToSend;
- QValueList<RecMailP> mailsToRemove;
+ Q3ValueList<RecMailP> mailsToSend;
+ Q3ValueList<RecMailP> mailsToRemove;
QString mbox("Outgoing");
wrap->listMessages(mbox,mailsToSend);
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp
index 41cee52..d8eee7d 100644
--- a/kmicromail/mailistviewitem.cpp
+++ b/kmicromail/mailistviewitem.cpp
@@ -2,10 +2,10 @@
#include "mailistviewitem.h"
#include <libmailwrapper/abstractmail.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <kiconloader.h>
#include "koprefs.h"
//#include <qpe/resource.h>
-MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item )
+MailListViewItem::MailListViewItem(Q3ListView * parent, MailListViewItem * item )
:KListViewItem(parent,item),mail_data()
{
diff --git a/kmicromail/mailistviewitem.h b/kmicromail/mailistviewitem.h
index b409c9d..ecc01ba 100644
--- a/kmicromail/mailistviewitem.h
+++ b/kmicromail/mailistviewitem.h
@@ -10,5 +10,5 @@ class MailListViewItem:public KListViewItem
{
public:
- MailListViewItem(QListView * parent, MailListViewItem * after );
+ MailListViewItem(Q3ListView * parent, MailListViewItem * after );
virtual ~MailListViewItem(){}
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp
index fe4bc76..dc73455 100644
--- a/kmicromail/main.cpp
+++ b/kmicromail/main.cpp
@@ -4,4 +4,6 @@
#ifndef DESKTOP_VERSION
#include <qpe/qpeapplication.h>
+//Added by qt3to4:
+#include <Q3CString>
#include <libkdepim/externalapphandler.h>
#include <stdlib.h>
@@ -24,4 +26,5 @@ void dumpMissing();
//using namespace Opie::Core;
int main( int argc, char **argv ) {
+ if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi");
#ifndef DESKTOP_VERSION
@@ -52,5 +55,5 @@ int main( int argc, char **argv ) {
#ifndef DESKTOP_VERSION
//qDebug("CONNECT ");
- QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& )));
+ QObject::connect( &a, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )),&mw, SLOT(message( const Q3CString&, const QByteArray& )));
// QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
a.showMainWidget(&mw );
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index d547dda..627d92e 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -2,8 +2,14 @@
// CHANGED 2004-08-06 Lutz Rogowski
#include <qlabel.h>
-#include <qvbox.h>
-#include <qheader.h>
+#include <q3vbox.h>
+#include <q3header.h>
#include <qtimer.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <Q3GridLayout>
+#include <Q3ValueList>
+#include <QPixmap>
+#include <Q3PopupMenu>
//#include <kdialog.h>
#include <kiconloader.h>
@@ -28,6 +34,6 @@ extern QStatusBar* globalSstatusBarMainWindow;
#include "koprefs.h"
-MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- : QMainWindow( parent, name ) //, flags )
+MainWindow::MainWindow( QWidget *parent, const char *name, Qt::WFlags flags )
+ : Q3MainWindow( parent, name ) //, flags )
{
#ifdef DESKTOP_VERSION
@@ -37,9 +43,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
setToolBarsMovable( false );
//KABC::StdAddressBook::self();
- toolBar = new QToolBar( this );
+ toolBar = new Q3ToolBar( this );
menuBar = new QPEMenuBar( toolBar );
- mailMenu = new QPopupMenu( menuBar );
+ mailMenu = new Q3PopupMenu( menuBar );
menuBar->insertItem( i18n( "Mail" ), mailMenu );
- settingsMenu = new QPopupMenu( menuBar );
+ settingsMenu = new Q3PopupMenu( menuBar );
menuBar->insertItem( i18n( "Settings" ), settingsMenu );
@@ -115,5 +121,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
0, 0, this );
editAccounts->addTo( settingsMenu );
- codecMenu = new QPopupMenu( menuBar );
+ codecMenu = new Q3PopupMenu( menuBar );
codecMenu->insertItem( "Western (iso-8859-1)",0,0);
codecMenu->insertItem( "Cyrillic (iso-8859-5)",1,1);
@@ -126,5 +132,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
//setCentralWidget( view );
- QVBox* wrapperBox = new QVBox( this );
+ Q3VBox* wrapperBox = new Q3VBox( this );
setCentralWidget( wrapperBox );
@@ -140,5 +146,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
if ( KOPrefs::instance()->mShowInfoSub || KOPrefs::instance()->mShowInfoFrom || KOPrefs::instance()->mShowInfoTo ) {
QWidget* infoBox = new QWidget( splithor );
- QGridLayout *griLay = new QGridLayout( infoBox, 2,2);
+ Q3GridLayout *griLay = new Q3GridLayout( infoBox, 2,2);
if ( KOPrefs::instance()->mShowInfoSub ) {
griLay->addWidget( new QLabel ( i18n("Su:"), infoBox ),0,0 );
@@ -169,10 +175,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
mailView = new KListView( split );
mailView->addColumn( i18n( " " ) );
- mailView->addColumn( i18n( "Subject" ),QListView::Manual );
- mailView->addColumn( i18n( "Sender" ),QListView::Manual );
- mailView->addColumn( i18n( "Size" ),QListView::Manual);
- mailView->addColumn( i18n( "Date" ),QListView::Manual);
+ mailView->addColumn( i18n( "Subject" ),Q3ListView::Manual );
+ mailView->addColumn( i18n( "Sender" ),Q3ListView::Manual );
+ mailView->addColumn( i18n( "Size" ),Q3ListView::Manual);
+ mailView->addColumn( i18n( "Date" ),Q3ListView::Manual);
if ( KOPrefs::instance()->mShowToField )
- mailView->addColumn( i18n( "To" ),QListView::Manual);
+ mailView->addColumn( i18n( "To" ),Q3ListView::Manual);
mailView->setAllColumnsShowFocus(true);
//mailView->setSorting(-1);
@@ -180,5 +186,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
statusWidget = new StatusWidget( wrapperBox );
statusWidget->hide();
- mailView->setSelectionMode( QListView::Multi );
+ mailView->setSelectionMode( Q3ListView::Multi );
mailView->setMultiSelection( true);
mailView->setAlternateBackground(KPimGlobalPrefs::instance()->mAlternateColor );
@@ -198,15 +204,15 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
QPEApplication::setStylusOperation( toLE ,QPEApplication::RightOnHold);
#endif
- connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this,
- SLOT( mailLeftClicked(QListViewItem*) ) );
- connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this,
- SLOT( mailLeftClicked(QListViewItem*) ) );
- connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this,
- SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) );
- connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)),
- this,SLOT(refreshMailView(const QValueList<RecMailP>&)));
-
- connect( mailView, SIGNAL( currentChanged (QListViewItem* )),this,
- SLOT( setInfoFields(QListViewItem*) ) );
+ connect( mailView, SIGNAL( doubleClicked (Q3ListViewItem* )),this,
+ SLOT( mailLeftClicked(Q3ListViewItem*) ) );
+ connect( mailView, SIGNAL( returnPressed (Q3ListViewItem* )),this,
+ SLOT( mailLeftClicked(Q3ListViewItem*) ) );
+ connect( mailView, SIGNAL( mouseButtonPressed(int,Q3ListViewItem*,const QPoint&,int) ),this,
+ SLOT( mailHold(int,Q3ListViewItem*,const QPoint&,int) ) );
+ connect(folderView, SIGNAL(refreshMailview(const Q3ValueList<RecMailP>&)),
+ this,SLOT(refreshMailView(const Q3ValueList<RecMailP>&)));
+
+ connect( mailView, SIGNAL( currentChanged (Q3ListViewItem* )),this,
+ SLOT( setInfoFields(Q3ListViewItem*) ) );
connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) );
@@ -216,5 +222,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
//mailView->setMultiSelection ( true );
//mailView->setSelectionMode( QListView::Extended );
- QValueList<int> list;
+ Q3ValueList<int> list;
int fw = 100;
if ( QApplication::desktop()->width() > 320 )
@@ -236,5 +242,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- QPopupMenu* helpMenu = new QPopupMenu( menuBar );
+ Q3PopupMenu* helpMenu = new Q3PopupMenu( menuBar );
menuBar->insertItem( i18n( "Help" ), helpMenu );
QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this);
@@ -260,5 +266,5 @@ MainWindow::~MainWindow()
}
-void MainWindow::setInfoFields(QListViewItem* item )
+void MainWindow::setInfoFields(Q3ListViewItem* item )
{
if ( item == 0) {
@@ -346,5 +352,5 @@ void MainWindow::showEtpanLicence()
}
-void MainWindow::appMessage(const QCString &, const QByteArray &)
+void MainWindow::appMessage(const Q3CString &, const QByteArray &)
{
qDebug("appMessage implemented by subclass");
@@ -406,10 +412,10 @@ void MainWindow::slotShowFolders( bool )
}
-void MainWindow::refreshMailView(const QValueList<RecMailP>&)
+void MainWindow::refreshMailView(const Q3ValueList<RecMailP>&)
{
qDebug("not implemented: ");
}
-void MainWindow::mailLeftClicked(QListViewItem * )
+void MainWindow::mailLeftClicked(Q3ListViewItem * )
{
qDebug("not implemented: ");
@@ -426,5 +432,5 @@ void MainWindow::slotDeleteMail()
}
-void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int )
+void MainWindow::mailHold(int, Q3ListViewItem *,const QPoint&,int )
{
qDebug("not implemented: ");
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h
index f65f3b4..1ccadc2 100644
--- a/kmicromail/mainwindow.h
+++ b/kmicromail/mainwindow.h
@@ -4,10 +4,14 @@
#define MAINWINDOW_H
-#include <qmainwindow.h>
+#include <q3mainwindow.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <Q3ValueList>
+#include <Q3PopupMenu>
#include <klistview.h>
#include <qaction.h>
#include <qlineedit.h>
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#ifdef DESKTOP_VERSION
#include <qmenubar.h>
@@ -25,10 +29,10 @@
class RecMail;
-class MainWindow : public QMainWindow
+class MainWindow : public Q3MainWindow
{
Q_OBJECT
public:
- MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 );
+ MainWindow( QWidget *parent = 0, const char *name = 0, Qt::WFlags flags = 0 );
virtual ~MainWindow();
@@ -36,13 +40,13 @@ public slots:
virtual void slotAdjustColumns();
virtual void slotAdjustColumnsWide();
- virtual void appMessage(const QCString &msg, const QByteArray &data);
+ virtual void appMessage(const Q3CString &msg, const QByteArray &data);
virtual void slotComposeMail();
protected slots:
- virtual void setInfoFields(QListViewItem* );
+ virtual void setInfoFields(Q3ListViewItem* );
virtual void slotSendQueued();
virtual void slotEditAccounts();
virtual void slotShowFolders( bool show );
- virtual void refreshMailView(const QValueList<RecMailP>&);
+ virtual void refreshMailView(const Q3ValueList<RecMailP>&);
virtual void displayMail();
virtual void slotGetMail() = 0;
@@ -51,9 +55,9 @@ protected slots:
virtual void slotDeleteAllMail() = 0;
virtual void slotSetCodec(int);
- virtual void mailHold(int, QListViewItem *,const QPoint&,int);
+ virtual void mailHold(int, Q3ListViewItem *,const QPoint&,int);
virtual void slotAdjustLayout();
virtual void slotEditSettings();
virtual void slotEditGlobalSettings();
- virtual void mailLeftClicked( QListViewItem * );
+ virtual void mailLeftClicked( Q3ListViewItem * );
void showLicence();
void showAbout();
@@ -61,8 +65,8 @@ protected slots:
protected:
- QToolBar *toolBar;
+ Q3ToolBar *toolBar;
StatusWidget *statusWidget;
QPEMenuBar *menuBar;
- QPopupMenu *mailMenu, *settingsMenu, *codecMenu;
+ Q3PopupMenu *mailMenu, *settingsMenu, *codecMenu;
QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails,
*editSettings, *editAccounts, *syncFolders;
diff --git a/kmicromail/nntpgroups.cpp b/kmicromail/nntpgroups.cpp
index c729f79..d2213d4 100644
--- a/kmicromail/nntpgroups.cpp
+++ b/kmicromail/nntpgroups.cpp
@@ -2,10 +2,10 @@
#include <libmailwrapper/settings.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlineedit.h>
using namespace Opie::Core;
-NNTPGroups::NNTPGroups(NNTPaccount *account, QWidget* parent, const char* name, WFlags fl)
+NNTPGroups::NNTPGroups(NNTPaccount *account, QWidget* parent, const char* name, Qt::WFlags fl)
: NNTPGroupsUI(parent,name,fl),subscribedGroups()
{
@@ -28,6 +28,6 @@ void NNTPGroups::slotGetNG()
subscribedGroupsNotListed = subscribedGroups;
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( GroupListView, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( GroupListView, (*it), Q3CheckListItem::CheckBox );
if ( subscribedGroups.contains( (*it) ) >= 1 ) {
item->setOn( true );
@@ -42,6 +42,6 @@ void NNTPGroups::fillGroups()
subscribedGroups = m_Account->getGroups();
for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( GroupListView, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( GroupListView, (*it), Q3CheckListItem::CheckBox );
item->setOn( true );
}
@@ -51,8 +51,8 @@ void NNTPGroups::storeValues()
{
if (!m_Account) return;
- QListViewItemIterator list_it( GroupListView );
+ Q3ListViewItemIterator list_it( GroupListView );
subscribedGroups.clear();
for ( ; list_it.current(); ++list_it ) {
- if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
+ if ( ( (Q3CheckListItem*)list_it.current() )->isOn() ) {
subscribedGroups.append( list_it.current()->text(0) );
}
diff --git a/kmicromail/nntpgroups.h b/kmicromail/nntpgroups.h
index e5b7c35..80cc329 100644
--- a/kmicromail/nntpgroups.h
+++ b/kmicromail/nntpgroups.h
@@ -13,5 +13,5 @@ class NNTPGroups:public NNTPGroupsUI
Q_OBJECT
public:
- NNTPGroups(NNTPaccount *account, QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
+ NNTPGroups(NNTPaccount *account, QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
virtual ~NNTPGroups();
/* must be called from external.
diff --git a/kmicromail/nntpgroupsdlg.cpp b/kmicromail/nntpgroupsdlg.cpp
index f564b10..bfe1d35 100644
--- a/kmicromail/nntpgroupsdlg.cpp
+++ b/kmicromail/nntpgroupsdlg.cpp
@@ -6,4 +6,6 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name)
@@ -12,5 +14,5 @@ NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char *
setCaption(i18n("Subscribed newsgroups"));
m_Account = account;
- QVBoxLayout*dlglayout = new QVBoxLayout(this);
+ Q3VBoxLayout*dlglayout = new Q3VBoxLayout(this);
dlglayout->setSpacing(2);
dlglayout->setMargin(1);
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 75a75b9..f453be5 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -5,4 +5,9 @@
#define protected public
#include <qwidget.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3CString>
+#include <QPixmap>
+#include <Q3PopupMenu>
#undef protected
#include "koprefsdialog.h"
@@ -28,5 +33,5 @@
#include <qtimer.h>
#include <qcursor.h>
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qregexp.h>
#include <qpe/global.h>
@@ -64,10 +69,10 @@ OpieMail::~OpieMail()
}
-void OpieMail::appMessage(const QCString &msg, const QByteArray &data)
+void OpieMail::appMessage(const Q3CString &msg, const QByteArray &data)
{
}
#include <stdlib.h>
-void OpieMail::message(const QCString &msg, const QByteArray &data)
+void OpieMail::message(const Q3CString &msg, const QByteArray &data)
{
// copied from old mail2
@@ -84,5 +89,5 @@ void OpieMail::message(const QCString &msg, const QByteArray &data)
{
//qDebug("writeMail(QString,QString) ");
- QDataStream stream(data,IO_ReadOnly);
+ QDataStream stream(data,QIODevice::ReadOnly);
stream >> mPendingName >> mPendingEmail;
// removing the whitespaces at beginning and end is needed!
@@ -101,5 +106,5 @@ void OpieMail::message(const QCString &msg, const QByteArray &data)
{
//qDebug(" newMail(QString)");
- QDataStream stream(data,IO_ReadOnly);
+ QDataStream stream(data,QIODevice::ReadOnly);
stream >> mPendingName;
// the format is
@@ -280,5 +285,5 @@ void OpieMail::replyMail()
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item) return;
RecMailP mail = ((MailListViewItem*)item)->data();
@@ -332,5 +337,5 @@ void OpieMail::closeViewMail(ViewMail * vm)
void OpieMail::slotDownloadMail( )
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item ) {
Global::statusMessage("Error: No item slected!");
@@ -373,5 +378,5 @@ void OpieMail::slotDownloadMail( )
void OpieMail::deleteAndDisplayNextMail(ViewMail * vm)
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item ) {
closeViewMail(vm);
@@ -393,5 +398,5 @@ void OpieMail::deleteAndDisplayNextMail(ViewMail * vm)
void OpieMail::displayNextMail(ViewMail * vm)
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item) return;
( (MailListViewItem*)item )->setPixmap( 0, QPixmap() );
@@ -409,5 +414,5 @@ void OpieMail::displayNextMail(ViewMail * vm)
void OpieMail::displayMail()
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item) return;
RecMailP mail = ((MailListViewItem*)item)->data();
@@ -433,5 +438,5 @@ void OpieMail::displayMail()
else
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (item)
( (MailListViewItem*)item )->setPixmap( 0, QPixmap() );
@@ -440,5 +445,5 @@ void OpieMail::displayMail()
void OpieMail::slotGetAllMail()
{
- QListViewItem * item = folderView->firstChild();
+ Q3ListViewItem * item = folderView->firstChild();
while ( item ){
((AccountViewItem *)item)->contextMenuSelected( 101 );
@@ -448,5 +453,5 @@ void OpieMail::slotGetAllMail()
void OpieMail::slotGetMail()
{
- QListViewItem * item = folderView->currentItem();
+ Q3ListViewItem * item = folderView->currentItem();
if ( ! item ) return;
((AccountViewItem *)item)->contextMenuSelected( 101 );
@@ -465,5 +470,5 @@ void OpieMail::slotDeleteAllMail()
{
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
{
@@ -493,5 +498,5 @@ void OpieMail::clearSelection()
void OpieMail::selectAll()
{
- QListViewItem* item = mailView->firstChild ();
+ Q3ListViewItem* item = mailView->firstChild ();
while ( item ) {
mailView->setSelected ( item, true );
@@ -500,5 +505,5 @@ void OpieMail::selectAll()
}
-void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
+void OpieMail::mailHold(int button, Q3ListViewItem *item,const QPoint&,int )
{
if (!mailView->currentItem()) return;
@@ -507,5 +512,5 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
if (button!=2) {return;}
if (!item) return;
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
{
@@ -554,10 +559,10 @@ void OpieMail::slotShowFolders( bool show )
}
-void OpieMail::refreshMailView(const QValueList<RecMailP>&list)
+void OpieMail::refreshMailView(const Q3ValueList<RecMailP>&list)
{
MailListViewItem*item = 0;
mailView->clear();
- QValueList<RecMailP>::ConstIterator it;
+ Q3ValueList<RecMailP>::ConstIterator it;
for (it = list.begin(); it != list.end();++it)
{
@@ -569,5 +574,5 @@ void OpieMail::refreshMailView(const QValueList<RecMailP>&list)
}
-void OpieMail::mailLeftClicked( QListViewItem *item )
+void OpieMail::mailLeftClicked( Q3ListViewItem *item )
{
mailView->clearSelection();
@@ -615,5 +620,5 @@ void OpieMail::slotMoveCopyAllMail()
if (!mailView->currentItem()) return;
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
// if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
{
diff --git a/kmicromail/opiemail.h b/kmicromail/opiemail.h
index bdd9058..ea64dc4 100644
--- a/kmicromail/opiemail.h
+++ b/kmicromail/opiemail.h
@@ -10,4 +10,7 @@
#include <viewmail.h>
#include <qstringlist.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <Q3ValueList>
class ComposeMail;
@@ -27,6 +30,6 @@ public slots:
virtual void slotComposeMail();
virtual void slotExtAppHandler();
- virtual void appMessage(const QCString &msg, const QByteArray &data);
- virtual void message(const QCString &msg, const QByteArray &data);
+ virtual void appMessage(const Q3CString &msg, const QByteArray &data);
+ virtual void message(const Q3CString &msg, const QByteArray &data);
void insertAttendees(const QString&, const QStringList& namelist, const QStringList& emaillist, const QStringList& uidlist);
protected slots:
@@ -44,8 +47,8 @@ protected slots:
virtual void slotGetAllMail();
virtual void slotDeleteAllMail();
- virtual void mailHold(int, QListViewItem *,const QPoint&,int);
+ virtual void mailHold(int, Q3ListViewItem *,const QPoint&,int);
virtual void slotShowFolders( bool show );
- virtual void refreshMailView(const QValueList<RecMailP>&);
- virtual void mailLeftClicked( QListViewItem * );
+ virtual void refreshMailView(const Q3ValueList<RecMailP>&);
+ virtual void mailLeftClicked( Q3ListViewItem * );
virtual void slotMoveCopyMail();
virtual void slotMoveCopyAllMail();
@@ -60,7 +63,7 @@ private:
QString mPendingName;
QByteArray mPendingData;
- QCString mPendingMessage;
+ Q3CString mPendingMessage;
Settings *settings;
- QTextBrowser * tb;
+ Q3TextBrowser * tb;
};
diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h
index c63133d..3720182 100644
--- a/kmicromail/qpe/qdialog.h
+++ b/kmicromail/qpe/qdialog.h
@@ -15,5 +15,5 @@ class QDialog_hacked : public QDialog
public:
- QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 );
+ QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, Qt::WFlags f=0 );
};
diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp
index 0a34cec..5d4d353 100644
--- a/kmicromail/qpe/qdialog_hacked.cpp
+++ b/kmicromail/qpe/qdialog_hacked.cpp
@@ -1,5 +1,5 @@
#include <qdialog.h>
-#include <qhbox.h>
+#include <q3hbox.h>
#include <qpushbutton.h>
#include <klocale.h>
@@ -7,5 +7,5 @@
#undef QDialog
#endif
- QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f )
+ QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, Qt::WFlags f )
: QDialog( parent,name,modal, f)
{
@@ -14,5 +14,5 @@
setOrientation ( Vertical );
- QHBox * hb = new QHBox ( this );
+ Q3HBox * hb = new Q3HBox ( this );
QPushButton *ok = new QPushButton( i18n("OK"), hb );
QPushButton *cancel = new QPushButton( i18n("Cancel"), hb );
diff --git a/kmicromail/selectsmtp.cpp b/kmicromail/selectsmtp.cpp
index 10b6d79..ead723c 100644
--- a/kmicromail/selectsmtp.cpp
+++ b/kmicromail/selectsmtp.cpp
@@ -9,7 +9,7 @@
#include <qlabel.h>
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <klocale.h>
-selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl)
+selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: selectstoreui(parent,name,modal,fl)
{
diff --git a/kmicromail/selectsmtp.h b/kmicromail/selectsmtp.h
index 9157ddf..d7accf6 100644
--- a/kmicromail/selectsmtp.h
+++ b/kmicromail/selectsmtp.h
@@ -12,5 +12,5 @@ class selectsmtp : public selectstoreui
Q_OBJECT
public:
- selectsmtp(QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 );
+ selectsmtp(QWidget* parent = 0, const char* name = 0, bool modal = TRUE, Qt::WFlags fl = 0 );
virtual ~selectsmtp();
void setSelectionlist(QList<SMTPaccount>*list);
diff --git a/kmicromail/selectstore.h b/kmicromail/selectstore.h
index 447a6ae..d312c1d 100644
--- a/kmicromail/selectstore.h
+++ b/kmicromail/selectstore.h
@@ -3,5 +3,5 @@
#include "selectstoreui.h"
-#include <qvaluelist.h>
+#include <q3valuelist.h>
#include <qmap.h>
#include <qstringlist.h>
diff --git a/kmicromail/settingsdialog.cpp b/kmicromail/settingsdialog.cpp
index c593b48..889c490 100644
--- a/kmicromail/settingsdialog.cpp
+++ b/kmicromail/settingsdialog.cpp
@@ -3,4 +3,6 @@
#include <qlayout.h>
#include <qtabwidget.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
#include <kconfig.h>
@@ -13,5 +15,5 @@
-SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
+SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, Qt::WFlags fl )
: SettingsDialogUI( parent, name, modal, fl ) {
@@ -19,5 +21,5 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, W
QTabWidget *topFrame = TabWidget2;
- QGridLayout *topLayout = new QGridLayout(topFrame,3,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,3,3);
topLayout->setSpacing(2);
topLayout->setMargin(3);
diff --git a/kmicromail/settingsdialog.h b/kmicromail/settingsdialog.h
index 042b69f..b168226 100644
--- a/kmicromail/settingsdialog.h
+++ b/kmicromail/settingsdialog.h
@@ -12,5 +12,5 @@ Q_OBJECT
public:
- SettingsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ SettingsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
~SettingsDialog();
diff --git a/kmicromail/statuswidget.cpp b/kmicromail/statuswidget.cpp
index 19cf635..6da6f54 100644
--- a/kmicromail/statuswidget.cpp
+++ b/kmicromail/statuswidget.cpp
@@ -1,4 +1,4 @@
#include <qtimer.h>
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qlabel.h>
@@ -8,5 +8,5 @@
-StatusWidget::StatusWidget( QWidget* parent, const char* name,WFlags fl )
+StatusWidget::StatusWidget( QWidget* parent, const char* name,Qt::WFlags fl )
: StatusWidgetUI( parent, name, fl ) {
diff --git a/kmicromail/statuswidget.h b/kmicromail/statuswidget.h
index 73f0d75..1d29daf 100644
--- a/kmicromail/statuswidget.h
+++ b/kmicromail/statuswidget.h
@@ -10,5 +10,5 @@ Q_OBJECT
public:
- StatusWidget( QWidget* parent = 0, const char* name = 0,WFlags fl = 0 );
+ StatusWidget( QWidget* parent = 0, const char* name = 0,Qt::WFlags fl = 0 );
~StatusWidget();
diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp
index 685b4e4..c9dedb0 100644
--- a/kmicromail/viewmail.cpp
+++ b/kmicromail/viewmail.cpp
@@ -25,18 +25,21 @@
/* QT */
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qmessagebox.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qaction.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qfile.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3VBoxLayout>
//using namespace Opie::Ui;
//using namespace Opie::Core;
-AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path)
- : QListViewItem(parent,after),_partNum(num)
+AttachItem::AttachItem(Q3ListView * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path)
+ : Q3ListViewItem(parent,after),_partNum(num)
{
_path=path;
@@ -47,7 +50,7 @@ AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mi
}
-AttachItem::AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path)
- : QListViewItem(parent,after),_partNum(num)
+AttachItem::AttachItem(Q3ListViewItem * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path)
+ : Q3ListViewItem(parent,after),_partNum(num)
{
_path=path;
@@ -58,5 +61,5 @@ AttachItem::AttachItem(QListViewItem * parent,QListViewItem *after, const QStrin
}
-bool AttachItem::isParentof(const QValueList<int>&path)
+bool AttachItem::isParentof(const Q3ValueList<int>&path)
{
/* if not set, then no parent */
@@ -71,7 +74,7 @@ bool AttachItem::isParentof(const QValueList<int>&path)
}
-AttachItem* ViewMail::searchParent(const QValueList<int>&path)
+AttachItem* ViewMail::searchParent(const Q3ValueList<int>&path)
{
- QListViewItemIterator it( attachments );
+ Q3ListViewItemIterator it( attachments );
for ( ; it.current(); ++it )
{
@@ -155,5 +158,5 @@ void ViewMail::setBody(const RecBodyP&body )
QTextOStream o(&fsize);
if (w>0) o.precision(2); else o.precision(0);
- o.setf(QTextStream::fixed);
+ o.setf(Q3TextStream::fixed);
o << s << " " << q << "Byte";
}
@@ -196,5 +199,5 @@ void ViewMail::setBody(const RecBodyP&body )
QTextOStream o(&fsize);
if (w>0) o.precision(2); else o.precision(0);
- o.setf(QTextStream::fixed);
+ o.setf(Q3TextStream::fixed);
o << s << " " << q << "Byte";
desc = body->Parts()[i]->Description();
@@ -240,5 +243,5 @@ void ViewMail::slotShowHtml( bool state )
}
-void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int )
+void ViewMail::slotItemClicked( Q3ListViewItem * item , const QPoint & point, int )
{
if (!item )
@@ -250,5 +253,5 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
return;
}
- QPopupMenu *menu = new QPopupMenu();
+ Q3PopupMenu *menu = new Q3PopupMenu();
int ret=0;
@@ -279,5 +282,5 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
{
QFile output(str);
- output.open(IO_WriteOnly);
+ output.open(QIODevice::WriteOnly);
output.writeBlock(content->Content(),content->Length());
output.close();
@@ -298,5 +301,5 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
if (content) {
QFile output(tmpfile);
- output.open(IO_WriteOnly);
+ output.open(QIODevice::WriteOnly);
output.writeBlock(content->Content(),content->Length());
output.close();
@@ -353,5 +356,5 @@ void ViewMail::slotNextMail()
}
-ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
+ViewMail::ViewMail( QWidget *parent, const char *name, Qt::WFlags fl)
: ViewMailBase(parent, name, fl), _inLoop(false)
{
@@ -370,5 +373,5 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
attachments->setEnabled(m_gotBody);
- connect( attachments, SIGNAL( clicked(QListViewItem*,const QPoint&, int) ), SLOT( slotItemClicked(QListViewItem*,const QPoint&, int) ) );
+ connect( attachments, SIGNAL( clicked(Q3ListViewItem*,const QPoint&, int) ), SLOT( slotItemClicked(Q3ListViewItem*,const QPoint&, int) ) );
attachments->setSorting(-1);
@@ -558,8 +561,8 @@ void ViewMail::slotDeleteMail( )
}
-MailImageDlg::MailImageDlg(const QString&fname,QWidget *parent, const char *name, bool modal, WFlags f)
+MailImageDlg::MailImageDlg(const QString&fname,QWidget *parent, const char *name, bool modal, Qt::WFlags f)
: QDialog(parent,name,modal)
{
- QVBoxLayout*dlglayout = new QVBoxLayout(this);
+ Q3VBoxLayout*dlglayout = new Q3VBoxLayout(this);
dlglayout->setSpacing(2);
dlglayout->setMargin(1);
diff --git a/kmicromail/viewmail.h b/kmicromail/viewmail.h
index bb5b685..6cf6efb 100644
--- a/kmicromail/viewmail.h
+++ b/kmicromail/viewmail.h
@@ -8,26 +8,26 @@
#include <qapplication.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qmap.h>
#include <klocale.h>
#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
//namespace Opie { namespace MM { class OImageScrollView; } }
-class AttachItem : public QListViewItem
+class AttachItem : public Q3ListViewItem
{
public:
- AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path);
- AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path);
+ AttachItem(Q3ListView * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path);
+ AttachItem(Q3ListViewItem * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path);
int Partnumber() { return _partNum; }
- bool isParentof(const QValueList<int>&path);
+ bool isParentof(const Q3ValueList<int>&path);
private:
int _partNum;
/* needed for a better display of attachments */
- QValueList<int> _path;
+ Q3ValueList<int> _path;
};
@@ -37,5 +37,5 @@ class ViewMail : public ViewMailBase
public:
- ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+ ViewMail( QWidget *parent = 0, const char *name = 0, Qt::WFlags fl = 0);
~ViewMail();
@@ -51,5 +51,5 @@ public:
protected:
QString deHtml(const QString &string);
- AttachItem* searchParent(const QValueList<int>&path);
+ AttachItem* searchParent(const Q3ValueList<int>&path);
AttachItem* lastChild(AttachItem*parent);
@@ -59,5 +59,5 @@ protected slots:
void slotForward();
void setText();
- void slotItemClicked( QListViewItem * item , const QPoint & point, int c );
+ void slotItemClicked( Q3ListViewItem * item , const QPoint & point, int c );
void slotDeleteMail( );
void slotShowHtml( bool );
@@ -84,5 +84,5 @@ class MailImageDlg:public QDialog
Q_OBJECT
public:
- MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0);
+ MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, Qt::WFlags f = 0);
~MailImageDlg();
void setName(const QString&);
diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp
index 3bb964e..371ee91 100644
--- a/kmicromail/viewmailbase.cpp
+++ b/kmicromail/viewmailbase.cpp
@@ -1,12 +1,15 @@
// CHANGED 2004-08-06 Lutz Rogowski
-#include <qtextbrowser.h>
-#include <qlistview.h>
+#include <q3textbrowser.h>
+#include <q3listview.h>
#include <qaction.h>
#include <qlabel.h>
-#include <qvbox.h>
+#include <q3vbox.h>
#include <qapplication.h>
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#include <qmenubar.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <Q3PopupMenu>
#include <kiconloader.h>
//#include <qpe/resource.h>
@@ -16,13 +19,13 @@
//#include "opendiag.h"
-ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
- : QMainWindow(parent, name, fl)
+ViewMailBase::ViewMailBase(QWidget *parent, const char *name, Qt::WFlags fl)
+ : Q3MainWindow(parent, name, fl)
{
setToolBarsMovable(false);
- toolbar = new QToolBar(this);
+ toolbar = new Q3ToolBar(this);
menubar = new QMenuBar( toolbar );
- mailmenu = new QPopupMenu( menubar );
+ mailmenu = new Q3PopupMenu( menubar );
menubar->insertItem( i18n( "Mail" ), mailmenu );
@@ -70,8 +73,8 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
closeMail->addTo(toolbar);
closeMail->addTo(mailmenu);
- QVBox *view = new QVBox(this);
+ Q3VBox *view = new Q3VBox(this);
setCentralWidget(view);
- attachments = new QListView(view);
+ attachments = new Q3ListView(view);
int fixh = 100;
if ( QApplication::desktop()->width() > 320 )
@@ -86,5 +89,5 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
attachments->hide();
- browser = new QTextBrowser(view);
+ browser = new Q3TextBrowser(view);
// openDiag = new OpenDiag(view);
diff --git a/kmicromail/viewmailbase.h b/kmicromail/viewmailbase.h
index 7c075eb..3f1dead 100644
--- a/kmicromail/viewmailbase.h
+++ b/kmicromail/viewmailbase.h
@@ -3,5 +3,8 @@
#define VIEWMAILBASE_H
-#include <qmainwindow.h>
+#include <q3mainwindow.h>
+//Added by qt3to4:
+#include <Q3PopupMenu>
+#include <QKeyEvent>
#ifndef DESKTOP_VERSION
@@ -12,25 +15,25 @@
class QAction;
class OpenDiag;
-class QListView;
-class QToolBar;
-class QTextBrowser;
+class Q3ListView;
+class Q3ToolBar;
+class Q3TextBrowser;
class QMenuBar;
-class QPopupMenu;
+class Q3PopupMenu;
-class ViewMailBase : public QMainWindow
+class ViewMailBase : public Q3MainWindow
{
Q_OBJECT
public:
- ViewMailBase(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+ ViewMailBase(QWidget *parent = 0, const char *name = 0, Qt::WFlags fl = 0);
protected:
QAction *reply, *forward, *attachbutton, *deleteMail, *showHtml, *closeMail, *nextMail, *downloadMail, *viewSource;
- QListView *attachments;
- QToolBar *toolbar;
- QTextBrowser *browser;
+ Q3ListView *attachments;
+ Q3ToolBar *toolbar;
+ Q3TextBrowser *browser;
OpenDiag *openDiag;
QMenuBar *menubar;
- QPopupMenu *mailmenu;
+ Q3PopupMenu *mailmenu;
protected slots: