author | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
commit | e3b89230f065c48c84b48c88edb6eb088374c487 (patch) (side-by-side diff) | |
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 @@ +#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 |