author | alwin <alwin> | 2004-02-22 23:56:05 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-22 23:56:05 (UTC) |
commit | eba25a5ebeca30b7124e7fae80685dbd1c9a985d (patch) (unidiff) | |
tree | d62dd266e9b57f3eae34612f5d0fc4cf0b625c20 /noncore/net/mailit/emailclient.h | |
parent | 666a49773d06ac94c19996d763854725c2f7a578 (diff) | |
download | opie-eba25a5ebeca30b7124e7fae80685dbd1c9a985d.zip opie-eba25a5ebeca30b7124e7fae80685dbd1c9a985d.tar.gz opie-eba25a5ebeca30b7124e7fae80685dbd1c9a985d.tar.bz2 |
moved mailit into unsupported area 'cause replaced by opiemail3
Diffstat (limited to 'noncore/net/mailit/emailclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/emailclient.h | 181 |
1 files changed, 0 insertions, 181 deletions
diff --git a/noncore/net/mailit/emailclient.h b/noncore/net/mailit/emailclient.h deleted file mode 100644 index 80c6d31..0000000 --- a/noncore/net/mailit/emailclient.h +++ b/dev/null | |||
@@ -1,181 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2001 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qt Palmtop Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef EMAILCLIENT_H | ||
21 | #define EMAILCLIENT_H | ||
22 | |||
23 | #include <qlist.h> | ||
24 | #include <qcstring.h> | ||
25 | #include <qmainwindow.h> | ||
26 | |||
27 | #include <qtoolbar.h> | ||
28 | #include <qcheckbox.h> | ||
29 | #include <qlabel.h> | ||
30 | #include <qlineedit.h> | ||
31 | #include <qlistview.h> | ||
32 | #include <qaction.h> | ||
33 | #include <qlayout.h> | ||
34 | #include <qtooltip.h> | ||
35 | #include <qtoolbutton.h> | ||
36 | #include <qimage.h> | ||
37 | #include <qpixmap.h> | ||
38 | #include <qstringlist.h> | ||
39 | #include <qprogressbar.h> | ||
40 | #include <qstatusbar.h> | ||
41 | #include <qdir.h> | ||
42 | #include <stdlib.h> | ||
43 | #include <opie/otabwidget.h> | ||
44 | #include <qpe/qcopenvelope_qws.h> | ||
45 | #include <qtimer.h> | ||
46 | |||
47 | #include "emailhandler.h" | ||
48 | #include "emaillistitem.h" | ||
49 | #include "textparser.h" | ||
50 | #include "editaccount.h" | ||
51 | #include "maillist.h" | ||
52 | #include "addresslist.h" | ||
53 | |||
54 | #include <qpe/config.h> | ||
55 | |||
56 | class AccountList : public QList<MailAccount> | ||
57 | { | ||
58 | public: | ||
59 | Item newItem(Item d); | ||
60 | private: | ||
61 | MailAccount* dupl(MailAccount *in); | ||
62 | MailAccount *ac; | ||
63 | }; | ||
64 | |||
65 | //class EmailClient : public EmailClientBase | ||
66 | class EmailClient : public QMainWindow | ||
67 | { | ||
68 | Q_OBJECT | ||
69 | |||
70 | public: | ||
71 | EmailClient( QWidget* parent, const char* name, WFlags fl = 0 ); | ||
72 | ~EmailClient(); | ||
73 | AddressList* getAdrListRef(); | ||
74 | |||
75 | protected: | ||
76 | //void timerEvent(QTimerEvent*); | ||
77 | |||
78 | signals: | ||
79 | void composeRequested(); | ||
80 | void viewEmail(QListView *, Email *); | ||
81 | void mailUpdated(Email *); | ||
82 | void newCaption(const QString &); | ||
83 | void replyRequested(Email&, bool&); | ||
84 | void forwardRequested(Email&); | ||
85 | void removeItem(EmailListItem*, bool&); | ||
86 | /*void reply(Email&); | ||
87 | void replyAll(Email&); | ||
88 | void remove(Email&); | ||
89 | void forward(Email&);*/ | ||
90 | |||
91 | public slots: | ||
92 | void compose(); | ||
93 | void cancel(); | ||
94 | void enqueMail(const Email &mail); | ||
95 | void setMailAccount(); | ||
96 | void sendQuedMail(); | ||
97 | void mailSent(); | ||
98 | void deleteItem(); | ||
99 | void getNewMail(); | ||
100 | void getAllNewMail(); | ||
101 | void smtpError(int code, const QString & Msg ); | ||
102 | void popError(int code, const QString & Msg); | ||
103 | void inboxItemSelected(); | ||
104 | void outboxItemSelected(); | ||
105 | void inboxItemPressed(); | ||
106 | void inboxItemReleased(); | ||
107 | void mailArrived(const Email &mail, bool fromDisk); | ||
108 | void allMailArrived(int); | ||
109 | void saveMail(const QString &fileName, QListView *view); | ||
110 | void selectAccount(int); | ||
111 | void editAccount(int); | ||
112 | void updateAccounts(); | ||
113 | void deleteAccount(int); | ||
114 | void deleteMail(EmailListItem *mailItem, bool &inbox); | ||
115 | void setTotalSize(int); | ||
116 | void setMailSize(int); | ||
117 | void setDownloadedSize(int); | ||
118 | void moveMailFront(Email *mailPtr); | ||
119 | void download(Email*); | ||
120 | /* void reply(); | ||
121 | void replyAll(); | ||
122 | void forward(); | ||
123 | void remove();*/ | ||
124 | |||
125 | private slots: | ||
126 | void receive(const QCString&, const QByteArray&); | ||
127 | |||
128 | private: | ||
129 | void init(); | ||
130 | void initStatusBar(QWidget*); | ||
131 | void readMail(); | ||
132 | QString getPath(bool enclosurePath); | ||
133 | void readSettings(); | ||
134 | void saveSettings(); | ||
135 | Email* getCurrentMail(); | ||
136 | int timerID; | ||
137 | Config *mailconf; | ||
138 | int newAccountId, idCount, mailIdCount; | ||
139 | int accountIdCount; | ||
140 | AccountList accountList; | ||
141 | AddressList *addressList; | ||
142 | |||
143 | EditAccount *editAccountView; | ||
144 | EmailListItem *item; | ||
145 | EmailHandler *emailHandler; | ||
146 | QList<Email> quedMessages; | ||
147 | MailList mailDownloadList; | ||
148 | MailList tempMailDownloadList; | ||
149 | |||
150 | bool sending, receiving, previewingMail, allAccounts; | ||
151 | QString lineShift; | ||
152 | MailAccount account, *currentAccount; | ||
153 | |||
154 | QCopChannel* channel; | ||
155 | |||
156 | QToolBar *bar; | ||
157 | QProgressBar *progressBar; | ||
158 | QStatusBar *statusBar; | ||
159 | QLabel *status1Label, *status2Label; | ||
160 | QToolButton *getMailButton; | ||
161 | QAction *sendMailButton; | ||
162 | QAction *composeButton; | ||
163 | QAction *cancelButton; | ||
164 | QAction *deleteButton; | ||
165 | //QToolButton *setAccountButton; | ||
166 | |||
167 | QMenuBar *mb; | ||
168 | QPopupMenu *selectAccountMenu; | ||
169 | QPopupMenu *editAccountMenu; | ||
170 | QPopupMenu *deleteAccountMenu; | ||
171 | QPopupMenu *setAccountMenu; | ||
172 | |||
173 | OTabWidget* mailboxView; | ||
174 | QListView* inboxView; | ||
175 | QListView* outboxView; | ||
176 | |||
177 | QGridLayout* grid_2; | ||
178 | QGridLayout* grid_3; | ||
179 | }; | ||
180 | |||
181 | #endif // EMAILCLIENT_H | ||