author | groucho <groucho> | 2003-04-29 08:04:34 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-04-29 08:04:34 (UTC) |
commit | f09f685be0540e98cc33bc4f664a812aed756926 (patch) (unidiff) | |
tree | 10a2193eafd1dc0ae25cd458f3bfa9f0f23522e1 /noncore/unsupported/mailit/emailclient.h | |
parent | e096c9d1f2be1ec74ede583fc4221871a56ef508 (diff) | |
download | opie-f09f685be0540e98cc33bc4f664a812aed756926.zip opie-f09f685be0540e98cc33bc4f664a812aed756926.tar.gz opie-f09f685be0540e98cc33bc4f664a812aed756926.tar.bz2 |
- added ReplyAll for CC: addressing
- added a download button in mail view
- smaller layout fixes
- now it's getting to be real useful
Diffstat (limited to 'noncore/unsupported/mailit/emailclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/emailclient.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/unsupported/mailit/emailclient.h b/noncore/unsupported/mailit/emailclient.h index 549683b..994fec5 100644 --- a/noncore/unsupported/mailit/emailclient.h +++ b/noncore/unsupported/mailit/emailclient.h | |||
@@ -38,12 +38,13 @@ | |||
38 | #include <qstringlist.h> | 38 | #include <qstringlist.h> |
39 | #include <qprogressbar.h> | 39 | #include <qprogressbar.h> |
40 | #include <qstatusbar.h> | 40 | #include <qstatusbar.h> |
41 | #include <qdir.h> | 41 | #include <qdir.h> |
42 | #include <stdlib.h> | 42 | #include <stdlib.h> |
43 | #include <opie/otabwidget.h> | 43 | #include <opie/otabwidget.h> |
44 | #include <qpe/qcopenvelope_qws.h> | ||
44 | #include <qtimer.h> | 45 | #include <qtimer.h> |
45 | 46 | ||
46 | #include "emailhandler.h" | 47 | #include "emailhandler.h" |
47 | #include "emaillistitem.h" | 48 | #include "emaillistitem.h" |
48 | #include "textparser.h" | 49 | #include "textparser.h" |
49 | #include "editaccount.h" | 50 | #include "editaccount.h" |
@@ -67,16 +68,15 @@ class EmailClient : public QMainWindow | |||
67 | Q_OBJECT | 68 | Q_OBJECT |
68 | 69 | ||
69 | public: | 70 | public: |
70 | EmailClient( QWidget* parent, const char* name, WFlags fl = 0 ); | 71 | EmailClient( QWidget* parent, const char* name, WFlags fl = 0 ); |
71 | ~EmailClient(); | 72 | ~EmailClient(); |
72 | AddressList* getAdrListRef(); | 73 | AddressList* getAdrListRef(); |
73 | void download(Email*); | ||
74 | 74 | ||
75 | protected: | 75 | protected: |
76 | void timerEvent(QTimerEvent*); | 76 | //void timerEvent(QTimerEvent*); |
77 | 77 | ||
78 | signals: | 78 | signals: |
79 | void composeRequested(); | 79 | void composeRequested(); |
80 | void viewEmail(QListView *, Email *); | 80 | void viewEmail(QListView *, Email *); |
81 | void mailUpdated(Email *); | 81 | void mailUpdated(Email *); |
82 | void newCaption(const QString &); | 82 | void newCaption(const QString &); |
@@ -113,19 +113,24 @@ public slots: | |||
113 | void deleteAccount(int); | 113 | void deleteAccount(int); |
114 | void deleteMail(EmailListItem *mailItem, bool &inbox); | 114 | void deleteMail(EmailListItem *mailItem, bool &inbox); |
115 | void setTotalSize(int); | 115 | void setTotalSize(int); |
116 | void setMailSize(int); | 116 | void setMailSize(int); |
117 | void setDownloadedSize(int); | 117 | void setDownloadedSize(int); |
118 | void moveMailFront(Email *mailPtr); | 118 | void moveMailFront(Email *mailPtr); |
119 | void download(Email*); | ||
119 | /* void reply(); | 120 | /* void reply(); |
120 | void replyAll(); | 121 | void replyAll(); |
121 | void forward(); | 122 | void forward(); |
122 | void remove();*/ | 123 | void remove();*/ |
123 | 124 | ||
125 | private slots: | ||
126 | void receive(const QCString&, const QByteArray&); | ||
127 | |||
124 | private: | 128 | private: |
125 | void init(); | 129 | void init(); |
130 | void initStatusBar(QWidget*); | ||
126 | void readMail(); | 131 | void readMail(); |
127 | QString getPath(bool enclosurePath); | 132 | QString getPath(bool enclosurePath); |
128 | void readSettings(); | 133 | void readSettings(); |
129 | void saveSettings(); | 134 | void saveSettings(); |
130 | Email* getCurrentMail(); | 135 | Email* getCurrentMail(); |
131 | int timerID; | 136 | int timerID; |
@@ -143,12 +148,14 @@ private: | |||
143 | MailList tempMailDownloadList; | 148 | MailList tempMailDownloadList; |
144 | 149 | ||
145 | bool sending, receiving, previewingMail, allAccounts; | 150 | bool sending, receiving, previewingMail, allAccounts; |
146 | QString lineShift; | 151 | QString lineShift; |
147 | MailAccount account, *currentAccount; | 152 | MailAccount account, *currentAccount; |
148 | 153 | ||
154 | QCopChannel* channel; | ||
155 | |||
149 | QToolBar *bar; | 156 | QToolBar *bar; |
150 | QProgressBar *progressBar; | 157 | QProgressBar *progressBar; |
151 | QStatusBar *statusBar; | 158 | QStatusBar *statusBar; |
152 | QLabel *status1Label, *status2Label; | 159 | QLabel *status1Label, *status2Label; |
153 | QToolButton *getMailButton; | 160 | QToolButton *getMailButton; |
154 | QAction *sendMailButton; | 161 | QAction *sendMailButton; |