author | alwin <alwin> | 2004-03-12 19:24:38 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-12 19:24:38 (UTC) |
commit | b600871ce93553a116a66fd80acd6dfc1cc46829 (patch) (unidiff) | |
tree | b361346a49e09d9f0220993583bf183cf29bd974 /noncore/net/mail/accountview.h | |
parent | 874d5a34eca296263dcd1adf857aebe9981825a1 (diff) | |
download | opie-b600871ce93553a116a66fd80acd6dfc1cc46829.zip opie-b600871ce93553a116a66fd80acd6dfc1cc46829.tar.gz opie-b600871ce93553a116a66fd80acd6dfc1cc46829.tar.bz2 |
some more smart-pointers
some bugfixes
some renaming of internals
Diffstat (limited to 'noncore/net/mail/accountview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/net/mail/accountview.h b/noncore/net/mail/accountview.h index 3478c0b..d236058 100644 --- a/noncore/net/mail/accountview.h +++ b/noncore/net/mail/accountview.h | |||
@@ -1,16 +1,15 @@ | |||
1 | #ifndef ACCOUNTVIEW_H | 1 | #ifndef ACCOUNTVIEW_H |
2 | #define ACCOUNTVIEW_H | 2 | #define ACCOUNTVIEW_H |
3 | 3 | ||
4 | #include <qlistview.h> | 4 | #include <qlistview.h> |
5 | #include <qlist.h> | 5 | #include <qlist.h> |
6 | #include <opie2/osmart_pointer.h> | 6 | #include <opie2/osmartpointer.h> |
7 | #include <libmailwrapper/mailtypes.h> | ||
7 | 8 | ||
8 | class Selectstore; | 9 | class Selectstore; |
9 | class RecMail; | ||
10 | class RecBody; | ||
11 | class Folder; | 10 | class Folder; |
12 | class AbstractMail; | 11 | class AbstractMail; |
13 | class Account; | 12 | class Account; |
14 | class IMAPviewItem; | 13 | class IMAPviewItem; |
15 | class MHviewItem; | 14 | class MHviewItem; |
16 | 15 | ||
@@ -19,26 +18,26 @@ class AccountView : public QListView | |||
19 | Q_OBJECT | 18 | Q_OBJECT |
20 | 19 | ||
21 | public: | 20 | public: |
22 | AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 21 | AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); |
23 | virtual ~AccountView(); | 22 | virtual ~AccountView(); |
24 | virtual void populate( QList<Account> list ); | 23 | virtual void populate( QList<Account> list ); |
25 | virtual RecBody fetchBody(const RecMail&aMail); | 24 | virtual RecBody fetchBody(const Opie::OSmartPointer<RecMail>&aMail); |
26 | virtual void downloadMails(const Opie::osmart_pointer<Folder>&fromFolder,AbstractMail*fromWrapper); | 25 | virtual void downloadMails(const Opie::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper); |
27 | virtual bool currentisDraft(); | 26 | virtual bool currentisDraft(); |
28 | 27 | ||
29 | public slots: | 28 | public slots: |
30 | virtual void refreshAll(); | 29 | virtual void refreshAll(); |
31 | virtual void refresh(QListViewItem *item); | 30 | virtual void refresh(QListViewItem *item); |
32 | virtual void refreshCurrent(); | 31 | virtual void refreshCurrent(); |
33 | virtual void slotHold(int, QListViewItem *,const QPoint&,int); | 32 | virtual void slotHold(int, QListViewItem *,const QPoint&,int); |
34 | virtual void slotContextMenu(int id); | 33 | virtual void slotContextMenu(int id); |
35 | void setupFolderselect(Selectstore*sels); | 34 | void setupFolderselect(Selectstore*sels); |
36 | 35 | ||
37 | signals: | 36 | signals: |
38 | void refreshMailview(QList<RecMail>*); | 37 | void refreshMailview(const QValueList<RecMailP>& ); |
39 | 38 | ||
40 | protected: | 39 | protected: |
41 | QListViewItem* m_currentItem; | 40 | QListViewItem* m_currentItem; |
42 | QValueList<IMAPviewItem*> imapAccounts; | 41 | QValueList<IMAPviewItem*> imapAccounts; |
43 | QValueList<MHviewItem*> mhAccounts; | 42 | QValueList<MHviewItem*> mhAccounts; |
44 | }; | 43 | }; |