summaryrefslogtreecommitdiffabout
path: root/kmicromail/accountview.h
Side-by-side diff
Diffstat (limited to 'kmicromail/accountview.h') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/accountview.h45
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 @@
+#ifndef ACCOUNTVIEW_H
+#define ACCOUNTVIEW_H
+
+#include <qlistview.h>
+#include <qlist.h>
+#include <opie2/osmartpointer.h>
+#include <libmailwrapper/mailtypes.h>
+
+class Selectstore;
+class Folder;
+class AbstractMail;
+class Account;
+class IMAPviewItem;
+class MHviewItem;
+
+class AccountView : public QListView
+{
+ Q_OBJECT
+
+public:
+ AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 );
+ virtual ~AccountView();
+ virtual void populate( QList<Account> list );
+ virtual RecBodyP fetchBody(const Opie::Core::OSmartPointer<RecMail>&aMail);
+ virtual void downloadMails(const Opie::Core::OSmartPointer<Folder>&fromFolder,AbstractMail*fromWrapper);
+ virtual bool currentisDraft();
+
+public slots:
+ virtual void refreshAll();
+ virtual void refresh(QListViewItem *item);
+ virtual void refreshCurrent();
+ virtual void slotHold(int, QListViewItem *,const QPoint&,int);
+ virtual void slotContextMenu(int id);
+ void setupFolderselect(Selectstore*sels);
+
+signals:
+ void refreshMailview(const QValueList<RecMailP>& );
+
+protected:
+ QListViewItem* m_currentItem;
+ QValueList<IMAPviewItem*> imapAccounts;
+ QValueList<MHviewItem*> mhAccounts;
+};
+
+#endif