-rw-r--r-- | kmicromail/accountview.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/kmicromail/accountview.h b/kmicromail/accountview.h index 33f3479..14b0ff9 100644 --- a/kmicromail/accountview.h +++ b/kmicromail/accountview.h | |||
@@ -1,8 +1,10 @@ | |||
1 | #ifndef ACCOUNTVIEW_H | 1 | #ifndef ACCOUNTVIEW_H |
2 | #define ACCOUNTVIEW_H | 2 | #define ACCOUNTVIEW_H |
3 | 3 | ||
4 | #include <qlistview.h> | 4 | #include <q3listview.h> |
5 | #include <qlist.h> | 5 | #include <qlist.h> |
6 | //Added by qt3to4: | ||
7 | #include <Q3ValueList> | ||
6 | #include <opie2/osmartpointer.h> | 8 | #include <opie2/osmartpointer.h> |
7 | #include <libmailwrapper/mailtypes.h> | 9 | #include <libmailwrapper/mailtypes.h> |
8 | 10 | ||
@@ -13,36 +15,36 @@ class Account; | |||
13 | class IMAPviewItem; | 15 | class IMAPviewItem; |
14 | class MHviewItem; | 16 | class MHviewItem; |
15 | 17 | ||
16 | class AccountView : public QListView | 18 | class AccountView : public Q3ListView |
17 | { | 19 | { |
18 | Q_OBJECT | 20 | Q_OBJECT |
19 | 21 | ||
20 | public: | 22 | public: |
21 | AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 23 | AccountView( QWidget *parent = 0, const char *name = 0, Qt::WFlags flags = 0 ); |
22 | virtual ~AccountView(); | 24 | virtual ~AccountView(); |
23 | virtual void populate( QList<Account> list ); | 25 | virtual void populate( QList<Account> list ); |
24 | virtual RecBodyP fetchBody(const Opie::Core::OSmartPointer<RecMail>&aMail); | 26 | virtual RecBodyP fetchBody(const Opie::Core::OSmartPointer<RecMail>&aMail); |
25 | virtual void downloadMails(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper); | 27 | virtual void downloadMails(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper); |
26 | virtual void downloadMailsInbox(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper); | 28 | virtual void downloadMailsInbox(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper); |
27 | virtual bool currentisDraft(); | 29 | virtual bool currentisDraft(); |
28 | QValueList<MHviewItem*> allAccounts() { return mhAccounts;} | 30 | Q3ValueList<MHviewItem*> allAccounts() { return mhAccounts;} |
29 | public slots: | 31 | public slots: |
30 | virtual void refreshAll(); | 32 | virtual void refreshAll(); |
31 | virtual void refresh(QListViewItem *item); | 33 | virtual void refresh(Q3ListViewItem *item); |
32 | virtual void refreshCurrent(); | 34 | virtual void refreshCurrent(); |
33 | virtual void refreshCurrentSelected(); | 35 | virtual void refreshCurrentSelected(); |
34 | virtual void refreshOutgoing(); | 36 | virtual void refreshOutgoing(); |
35 | virtual void slotHold(int, QListViewItem *,const QPoint&,int); | 37 | virtual void slotHold(int, Q3ListViewItem *,const QPoint&,int); |
36 | virtual void slotContextMenu(int id); | 38 | virtual void slotContextMenu(int id); |
37 | void setupFolderselect(Selectstore*sels); | 39 | void setupFolderselect(Selectstore*sels); |
38 | 40 | ||
39 | signals: | 41 | signals: |
40 | void refreshMailview(const QValueList<RecMailP>& ); | 42 | void refreshMailview(const Q3ValueList<RecMailP>& ); |
41 | 43 | ||
42 | protected: | 44 | protected: |
43 | QListViewItem* m_currentItem; | 45 | Q3ListViewItem* m_currentItem; |
44 | QValueList<IMAPviewItem*> imapAccounts; | 46 | Q3ValueList<IMAPviewItem*> imapAccounts; |
45 | QValueList<MHviewItem*> mhAccounts; | 47 | Q3ValueList<MHviewItem*> mhAccounts; |
46 | }; | 48 | }; |
47 | 49 | ||
48 | #endif | 50 | #endif |