author | groucho <groucho> | 2003-04-20 07:59:48 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-04-20 07:59:48 (UTC) |
commit | 8b85cba50912127ff6a2d048021baf68306481c6 (patch) (unidiff) | |
tree | bfd1b377911d05db8e1c816f72fe070d5a5b2ff3 /noncore/net/mailit/emailclient.h | |
parent | 6b381e438fdeb1757b3278c683349dee9c4ab230 (diff) | |
download | opie-8b85cba50912127ff6a2d048021baf68306481c6.zip opie-8b85cba50912127ff6a2d048021baf68306481c6.tar.gz opie-8b85cba50912127ff6a2d048021baf68306481c6.tar.bz2 |
- Added CC: support
- Added mail forwarding
- Added icon for selective mail download
- Removing mails from mail list via icon
- Temporarily disabled mail header download queue
Diffstat (limited to 'noncore/net/mailit/emailclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/emailclient.h | 32 |
1 files changed, 27 insertions, 5 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 | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <qaction.h> | 32 | #include <qaction.h> |
33 | #include <qlayout.h> | 33 | #include <qlayout.h> |
34 | #include <qtooltip.h> | 34 | #include <qtooltip.h> |
35 | #include <qtoolbutton.h> | ||
35 | #include <qimage.h> | 36 | #include <qimage.h> |
36 | #include <qpixmap.h> | 37 | #include <qpixmap.h> |
37 | #include <qstringlist.h> | 38 | #include <qstringlist.h> |
@@ -40,6 +41,7 @@ | |||
40 | #include <qdir.h> | 41 | #include <qdir.h> |
41 | #include <stdlib.h> | 42 | #include <stdlib.h> |
42 | #include <opie/otabwidget.h> | 43 | #include <opie/otabwidget.h> |
44 | #include <qtimer.h> | ||
43 | 45 | ||
44 | #include "emailhandler.h" | 46 | #include "emailhandler.h" |
45 | #include "emaillistitem.h" | 47 | #include "emaillistitem.h" |
@@ -69,12 +71,22 @@ public: | |||
69 | ~EmailClient(); | 71 | ~EmailClient(); |
70 | AddressList* getAdrListRef(); | 72 | AddressList* getAdrListRef(); |
71 | 73 | ||
74 | protected: | ||
75 | void timerEvent(QTimerEvent*); | ||
76 | |||
72 | signals: | 77 | signals: |
73 | void composeRequested(); | 78 | void composeRequested(); |
74 | void viewEmail(QListView *, Email *); | 79 | void viewEmail(QListView *, Email *); |
75 | void mailUpdated(Email *); | 80 | void mailUpdated(Email *); |
76 | void newCaption(const QString &); | 81 | void newCaption(const QString &); |
77 | 82 | void replyRequested(Email&, bool&); | |
83 | void forwardRequested(Email&); | ||
84 | void removeItem(EmailListItem*, bool&); | ||
85 | /*void reply(Email&); | ||
86 | void replyAll(Email&); | ||
87 | void remove(Email&); | ||
88 | void forward(Email&);*/ | ||
89 | |||
78 | public slots: | 90 | public slots: |
79 | void compose(); | 91 | void compose(); |
80 | void cancel(); | 92 | void cancel(); |
@@ -82,12 +94,15 @@ public slots: | |||
82 | void setMailAccount(); | 94 | void setMailAccount(); |
83 | void sendQuedMail(); | 95 | void sendQuedMail(); |
84 | void mailSent(); | 96 | void mailSent(); |
97 | void deleteItem(); | ||
85 | void getNewMail(); | 98 | void getNewMail(); |
86 | void getAllNewMail(); | 99 | void getAllNewMail(); |
87 | void smtpError(int code); | 100 | void smtpError(int code); |
88 | void popError(int code); | 101 | void popError(int code); |
89 | void inboxItemSelected(); | 102 | void inboxItemSelected(); |
90 | void outboxItemSelected(); | 103 | void outboxItemSelected(); |
104 | void inboxItemPressed(); | ||
105 | void inboxItemReleased(); | ||
91 | void mailArrived(const Email &mail, bool fromDisk); | 106 | void mailArrived(const Email &mail, bool fromDisk); |
92 | void allMailArrived(int); | 107 | void allMailArrived(int); |
93 | void saveMail(QString fileName, QListView *view); | 108 | void saveMail(QString fileName, QListView *view); |
@@ -100,6 +115,10 @@ public slots: | |||
100 | void setMailSize(int); | 115 | void setMailSize(int); |
101 | void setDownloadedSize(int); | 116 | void setDownloadedSize(int); |
102 | void moveMailFront(Email *mailPtr); | 117 | void moveMailFront(Email *mailPtr); |
118 | /* void reply(); | ||
119 | void replyAll(); | ||
120 | void forward(); | ||
121 | void remove();*/ | ||
103 | 122 | ||
104 | private: | 123 | private: |
105 | void init(); | 124 | void init(); |
@@ -107,8 +126,8 @@ private: | |||
107 | QString getPath(bool enclosurePath); | 126 | QString getPath(bool enclosurePath); |
108 | void readSettings(); | 127 | void readSettings(); |
109 | void saveSettings(); | 128 | void saveSettings(); |
110 | 129 | Email* getCurrentMail(); | |
111 | private: | 130 | int timerID; |
112 | Config *mailconf; | 131 | Config *mailconf; |
113 | int newAccountId, idCount, mailIdCount; | 132 | int newAccountId, idCount, mailIdCount; |
114 | int accountIdCount; | 133 | int accountIdCount; |
@@ -128,15 +147,18 @@ private: | |||
128 | QProgressBar *progressBar; | 147 | QProgressBar *progressBar; |
129 | QStatusBar *statusBar; | 148 | QStatusBar *statusBar; |
130 | QLabel *status1Label, *status2Label; | 149 | QLabel *status1Label, *status2Label; |
131 | QAction *getMailButton; | 150 | QToolButton *getMailButton; |
132 | QAction *sendMailButton; | 151 | QAction *sendMailButton; |
133 | QAction *composeButton; | 152 | QAction *composeButton; |
134 | QAction *cancelButton; | 153 | QAction *cancelButton; |
135 | 154 | QAction *deleteButton; | |
155 | //QToolButton *setAccountButton; | ||
156 | |||
136 | QMenuBar *mb; | 157 | QMenuBar *mb; |
137 | QPopupMenu *selectAccountMenu; | 158 | QPopupMenu *selectAccountMenu; |
138 | QPopupMenu *editAccountMenu; | 159 | QPopupMenu *editAccountMenu; |
139 | QPopupMenu *deleteAccountMenu; | 160 | QPopupMenu *deleteAccountMenu; |
161 | QPopupMenu *setAccountMenu; | ||
140 | 162 | ||
141 | OTabWidget* mailboxView; | 163 | OTabWidget* mailboxView; |
142 | QListView* inboxView; | 164 | QListView* inboxView; |