Diffstat (limited to 'noncore/net/mailit/emailclient.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mailit/emailclient.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/noncore/net/mailit/emailclient.h b/noncore/net/mailit/emailclient.h index 80457f9..0890dcf 100644 --- a/noncore/net/mailit/emailclient.h +++ b/noncore/net/mailit/emailclient.h @@ -33,4 +33,5 @@ #include <qlayout.h> #include <qtooltip.h> +#include <qtoolbutton.h> #include <qimage.h> #include <qpixmap.h> @@ -41,4 +42,5 @@ #include <stdlib.h> #include <opie/otabwidget.h> +#include <qtimer.h> #include "emailhandler.h" @@ -70,4 +72,7 @@ public: AddressList* getAdrListRef(); +protected: + void timerEvent(QTimerEvent*); + signals: void composeRequested(); @@ -75,4 +80,11 @@ signals: void mailUpdated(Email *); void newCaption(const QString &); + void replyRequested(Email&, bool&); + void forwardRequested(Email&); + void removeItem(EmailListItem*, bool&); + /*void reply(Email&); + void replyAll(Email&); + void remove(Email&); + void forward(Email&);*/ public slots: @@ -83,4 +95,5 @@ public slots: void sendQuedMail(); void mailSent(); + void deleteItem(); void getNewMail(); void getAllNewMail(); @@ -89,4 +102,6 @@ public slots: void inboxItemSelected(); void outboxItemSelected(); + void inboxItemPressed(); + void inboxItemReleased(); void mailArrived(const Email &mail, bool fromDisk); void allMailArrived(int); @@ -101,4 +116,8 @@ public slots: void setDownloadedSize(int); void moveMailFront(Email *mailPtr); +/* void reply(); + void replyAll(); + void forward(); + void remove();*/ private: @@ -108,6 +127,6 @@ private: void readSettings(); void saveSettings(); - -private: + Email* getCurrentMail(); + int timerID; Config *mailconf; int newAccountId, idCount, mailIdCount; @@ -129,8 +148,10 @@ private: QStatusBar *statusBar; QLabel *status1Label, *status2Label; - QAction *getMailButton; + QToolButton *getMailButton; QAction *sendMailButton; QAction *composeButton; QAction *cancelButton; + QAction *deleteButton; + //QToolButton *setAccountButton; QMenuBar *mb; @@ -138,4 +159,5 @@ private: QPopupMenu *editAccountMenu; QPopupMenu *deleteAccountMenu; + QPopupMenu *setAccountMenu; OTabWidget* mailboxView; |