author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/accountview.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-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,48 +1,50 @@ | |||
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 | ||
9 | class Selectstore; | 11 | class Selectstore; |
10 | class Folder; | 12 | class Folder; |
11 | class AbstractMail; | 13 | class AbstractMail; |
12 | class Account; | 14 | 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 |