-rw-r--r-- | kmicromail/accountitem.h | 63 |
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 | |||
@@ -3,6 +3,9 @@ | |||
3 | 3 | ||
4 | 4 | ||
5 | #include <qlistview.h> | 5 | #include <q3listview.h> |
6 | #include <qlist.h> | 6 | #include <qlist.h> |
7 | //Added by qt3to4: | ||
8 | #include <Q3ValueList> | ||
9 | #include <Q3PopupMenu> | ||
7 | #include <opie2/osmartpointer.h> | 10 | #include <opie2/osmartpointer.h> |
8 | #include <libmailwrapper/mailwrapper.h> | 11 | #include <libmailwrapper/mailwrapper.h> |
@@ -11,5 +14,5 @@ class POP3wrapper; | |||
11 | class RecMail; | 14 | class RecMail; |
12 | class RecBody; | 15 | class RecBody; |
13 | class QPopupMenu; | 16 | class Q3PopupMenu; |
14 | class Selectstore; | 17 | class Selectstore; |
15 | class AccountView; | 18 | class AccountView; |
@@ -22,17 +25,17 @@ class Folder; | |||
22 | #define RECBODYP Opie::Core::OSmartPointer<RecBody> | 25 | #define RECBODYP Opie::Core::OSmartPointer<RecBody> |
23 | 26 | ||
24 | class AccountViewItem : public QListViewItem | 27 | class AccountViewItem : public Q3ListViewItem |
25 | { | 28 | { |
26 | 29 | ||
27 | public: | 30 | public: |
28 | AccountViewItem( AccountView *parent ); | 31 | AccountViewItem( AccountView *parent ); |
29 | AccountViewItem( QListViewItem *parent); | 32 | AccountViewItem( Q3ListViewItem *parent); |
30 | AccountViewItem( QListViewItem *parent , QListViewItem*after ); | 33 | AccountViewItem( Q3ListViewItem *parent , Q3ListViewItem*after ); |
31 | AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after ); | 34 | AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,Q3ListViewItem *parent , Q3ListViewItem*after ); |
32 | 35 | ||
33 | virtual ~AccountViewItem(); | 36 | virtual ~AccountViewItem(); |
34 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&)=0; | 37 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&)=0; |
35 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&)=0; | 38 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&)=0; |
36 | virtual QPopupMenu * getContextMenu(){return 0;}; | 39 | virtual Q3PopupMenu * getContextMenu(){return 0;}; |
37 | virtual void contextMenuSelected(int){} | 40 | virtual void contextMenuSelected(int){} |
38 | virtual AccountView*accountView(); | 41 | virtual AccountView*accountView(); |
@@ -57,8 +60,8 @@ public: | |||
57 | POP3viewItem( POP3account *a, AccountView *parent ); | 60 | POP3viewItem( POP3account *a, AccountView *parent ); |
58 | virtual ~POP3viewItem(); | 61 | virtual ~POP3viewItem(); |
59 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target ); | 62 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target ); |
60 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); | 63 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); |
61 | AbstractMail *getWrapper(); | 64 | AbstractMail *getWrapper(); |
62 | virtual QPopupMenu * getContextMenu(); | 65 | virtual Q3PopupMenu * getContextMenu(); |
63 | virtual void contextMenuSelected(int); | 66 | virtual void contextMenuSelected(int); |
64 | 67 | ||
@@ -75,9 +78,9 @@ class POP3folderItem : public AccountViewItem | |||
75 | 78 | ||
76 | public: | 79 | public: |
77 | POP3folderItem( const Opie::Core::OSmartPointer<Folder>&folder, POP3viewItem *parent , QListViewItem*after ); | 80 | POP3folderItem( const Opie::Core::OSmartPointer<Folder>&folder, POP3viewItem *parent , Q3ListViewItem*after ); |
78 | virtual ~POP3folderItem(); | 81 | virtual ~POP3folderItem(); |
79 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&); | 82 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&); |
80 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); | 83 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); |
81 | virtual QPopupMenu * getContextMenu(); | 84 | virtual Q3PopupMenu * getContextMenu(); |
82 | virtual void contextMenuSelected(int); | 85 | virtual void contextMenuSelected(int); |
83 | 86 | ||
@@ -94,8 +97,8 @@ public: | |||
94 | NNTPviewItem( NNTPaccount *a, AccountView *parent ); | 97 | NNTPviewItem( NNTPaccount *a, AccountView *parent ); |
95 | virtual ~NNTPviewItem(); | 98 | virtual ~NNTPviewItem(); |
96 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target ); | 99 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target ); |
97 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); | 100 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); |
98 | AbstractMail *getWrapper(); | 101 | AbstractMail *getWrapper(); |
99 | virtual QPopupMenu * getContextMenu(); | 102 | virtual Q3PopupMenu * getContextMenu(); |
100 | virtual void contextMenuSelected(int); | 103 | virtual void contextMenuSelected(int); |
101 | 104 | ||
@@ -113,9 +116,9 @@ class NNTPfolderItem : public AccountViewItem | |||
113 | 116 | ||
114 | public: | 117 | public: |
115 | NNTPfolderItem(const Opie::Core::OSmartPointer<Folder>&folder, NNTPviewItem *parent , QListViewItem*after ); | 118 | NNTPfolderItem(const Opie::Core::OSmartPointer<Folder>&folder, NNTPviewItem *parent , Q3ListViewItem*after ); |
116 | virtual ~NNTPfolderItem(); | 119 | virtual ~NNTPfolderItem(); |
117 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&); | 120 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&); |
118 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); | 121 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); |
119 | virtual QPopupMenu * getContextMenu(); | 122 | virtual Q3PopupMenu * getContextMenu(); |
120 | virtual void contextMenuSelected(int); | 123 | virtual void contextMenuSelected(int); |
121 | 124 | ||
@@ -133,8 +136,8 @@ public: | |||
133 | IMAPviewItem( IMAPaccount *a, AccountView *parent ); | 136 | IMAPviewItem( IMAPaccount *a, AccountView *parent ); |
134 | virtual ~IMAPviewItem(); | 137 | virtual ~IMAPviewItem(); |
135 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&); | 138 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&); |
136 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); | 139 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); |
137 | AbstractMail *getWrapper(); | 140 | AbstractMail *getWrapper(); |
138 | virtual QPopupMenu * getContextMenu(); | 141 | virtual Q3PopupMenu * getContextMenu(); |
139 | virtual void contextMenuSelected(int); | 142 | virtual void contextMenuSelected(int); |
140 | const QStringList&subFolders(); | 143 | const QStringList&subFolders(); |
@@ -153,10 +156,10 @@ class IMAPfolderItem : public AccountViewItem | |||
153 | 156 | ||
154 | public: | 157 | public: |
155 | IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPviewItem *parent , QListViewItem*after ); | 158 | IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPviewItem *parent , Q3ListViewItem*after ); |
156 | IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPfolderItem *parent , QListViewItem*after, IMAPviewItem *master ); | 159 | IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPfolderItem *parent , Q3ListViewItem*after, IMAPviewItem *master ); |
157 | virtual ~IMAPfolderItem(); | 160 | virtual ~IMAPfolderItem(); |
158 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&); | 161 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&); |
159 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); | 162 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); |
160 | virtual QPopupMenu * getContextMenu(); | 163 | virtual Q3PopupMenu * getContextMenu(); |
161 | virtual void contextMenuSelected(int); | 164 | virtual void contextMenuSelected(int); |
162 | virtual const QString& Delemiter()const; | 165 | virtual const QString& Delemiter()const; |
@@ -175,8 +178,8 @@ public: | |||
175 | MHviewItem( const QString&aMboxPath, AccountView *parent ); | 178 | MHviewItem( const QString&aMboxPath, AccountView *parent ); |
176 | virtual ~MHviewItem(); | 179 | virtual ~MHviewItem(); |
177 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target ); | 180 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target ); |
178 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); | 181 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); |
179 | AbstractMail *getWrapper(); | 182 | AbstractMail *getWrapper(); |
180 | virtual QPopupMenu * getContextMenu(); | 183 | virtual Q3PopupMenu * getContextMenu(); |
181 | virtual void contextMenuSelected(int); | 184 | virtual void contextMenuSelected(int); |
182 | QStringList subFolders(); | 185 | QStringList subFolders(); |
@@ -195,10 +198,10 @@ class MHfolderItem : public AccountViewItem | |||
195 | 198 | ||
196 | public: | 199 | public: |
197 | MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHviewItem *parent , QListViewItem*after ); | 200 | MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHviewItem *parent , Q3ListViewItem*after ); |
198 | MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHfolderItem *parent, QListViewItem*after, MHviewItem*master); | 201 | MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHfolderItem *parent, Q3ListViewItem*after, MHviewItem*master); |
199 | virtual ~MHfolderItem(); | 202 | virtual ~MHfolderItem(); |
200 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&); | 203 | virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&); |
201 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); | 204 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&); |
202 | virtual QPopupMenu * getContextMenu(); | 205 | virtual Q3PopupMenu * getContextMenu(); |
203 | virtual void contextMenuSelected(int); | 206 | virtual void contextMenuSelected(int); |
204 | virtual const Opie::Core::OSmartPointer<Folder>&getFolder()const; | 207 | virtual const Opie::Core::OSmartPointer<Folder>&getFolder()const; |