author | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
commit | e3b89230f065c48c84b48c88edb6eb088374c487 (patch) (unidiff) | |
tree | 162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/accountview.h | |
parent | 2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff) | |
download | kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2 |
Initial revision
-rw-r--r-- | kmicromail/accountview.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/kmicromail/accountview.h b/kmicromail/accountview.h new file mode 100644 index 0000000..787b0b0 --- a/dev/null +++ b/kmicromail/accountview.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef ACCOUNTVIEW_H | ||
2 | #define ACCOUNTVIEW_H | ||
3 | |||
4 | #include <qlistview.h> | ||
5 | #include <qlist.h> | ||
6 | #include <opie2/osmartpointer.h> | ||
7 | #include <libmailwrapper/mailtypes.h> | ||
8 | |||
9 | class Selectstore; | ||
10 | class Folder; | ||
11 | class AbstractMail; | ||
12 | class Account; | ||
13 | class IMAPviewItem; | ||
14 | class MHviewItem; | ||
15 | |||
16 | class AccountView : public QListView | ||
17 | { | ||
18 | Q_OBJECT | ||
19 | |||
20 | public: | ||
21 | AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | ||
22 | virtual ~AccountView(); | ||
23 | virtual void populate( QList<Account> list ); | ||
24 | virtual RecBodyP fetchBody(const Opie::Core::OSmartPointer<RecMail>&aMail); | ||
25 | virtual void downloadMails(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper); | ||
26 | virtual bool currentisDraft(); | ||
27 | |||
28 | public slots: | ||
29 | virtual void refreshAll(); | ||
30 | virtual void refresh(QListViewItem *item); | ||
31 | virtual void refreshCurrent(); | ||
32 | virtual void slotHold(int, QListViewItem *,const QPoint&,int); | ||
33 | virtual void slotContextMenu(int id); | ||
34 | void setupFolderselect(Selectstore*sels); | ||
35 | |||
36 | signals: | ||
37 | void refreshMailview(const QValueList<RecMailP>& ); | ||
38 | |||
39 | protected: | ||
40 | QListViewItem* m_currentItem; | ||
41 | QValueList<IMAPviewItem*> imapAccounts; | ||
42 | QValueList<MHviewItem*> mhAccounts; | ||
43 | }; | ||
44 | |||
45 | #endif | ||