summaryrefslogtreecommitdiffabout
path: root/kmicromail/accountitem.h
Side-by-side diff
Diffstat (limited to 'kmicromail/accountitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/accountitem.h63
1 files changed, 33 insertions, 30 deletions
diff --git a/kmicromail/accountitem.h b/kmicromail/accountitem.h
index 4c92bfc..bbfd05f 100644
--- a/kmicromail/accountitem.h
+++ b/kmicromail/accountitem.h
@@ -1,17 +1,20 @@
#ifndef __ACCOUNT_ITEM
#define __ACCOUNT_ITEM
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3PopupMenu>
#include <opie2/osmartpointer.h>
#include <libmailwrapper/mailwrapper.h>
class POP3wrapper;
class RecMail;
class RecBody;
-class QPopupMenu;
+class Q3PopupMenu;
class Selectstore;
class AccountView;
class POP3account;
class NNTPaccount;
@@ -20,21 +23,21 @@ class AbstractMail;
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();
virtual bool matchName(const QString&name)const;
virtual bool isDraftfolder();
@@ -55,12 +58,12 @@ class POP3viewItem : public AccountViewItem
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);
protected:
POP3account *account;
@@ -73,13 +76,13 @@ protected:
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);
protected:
void downloadMails();
@@ -92,12 +95,12 @@ class NNTPviewItem : public AccountViewItem
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);
protected:
NNTPaccount *account;
@@ -111,13 +114,13 @@ protected:
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);
protected:
void downloadMails();
@@ -131,12 +134,12 @@ class IMAPviewItem : public AccountViewItem
friend class IMAPfolderItem;
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();
virtual void refreshFolders(bool force=false);
bool offline();
@@ -151,14 +154,14 @@ protected:
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;
protected:
virtual void createNewFolder();
@@ -173,12 +176,12 @@ class MHviewItem : public AccountViewItem
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();
virtual void refresh(bool force=false);
@@ -193,14 +196,14 @@ protected:
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;
virtual bool isDraftfolder();