author | llornkcor <llornkcor> | 2003-04-06 17:45:00 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-04-06 17:45:00 (UTC) |
commit | 70b1ff1a3f134d75d1539f269d52b34e6762684d (patch) (unidiff) | |
tree | 28c1b3d0c03e8c0188f014dfe094645d1ddfef5f /noncore/net/mailit/emailclient.h | |
parent | 75e8f29020e267d1013a79839831035073b4eeae (diff) | |
download | opie-70b1ff1a3f134d75d1539f269d52b34e6762684d.zip opie-70b1ff1a3f134d75d1539f269d52b34e6762684d.tar.gz opie-70b1ff1a3f134d75d1539f269d52b34e6762684d.tar.bz2 |
move malit to head again, since it is working
Diffstat (limited to 'noncore/net/mailit/emailclient.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mailit/emailclient.h | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/noncore/net/mailit/emailclient.h b/noncore/net/mailit/emailclient.h new file mode 100644 index 0000000..135bfaa --- a/dev/null +++ b/noncore/net/mailit/emailclient.h | |||
@@ -0,0 +1,149 @@ | |||
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 <qtabwidget.h> | ||
33 | #include <qaction.h> | ||
34 | #include <qlayout.h> | ||
35 | #include <qtooltip.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 | |||
44 | #include "emailhandler.h" | ||
45 | #include "emaillistitem.h" | ||
46 | #include "textparser.h" | ||
47 | #include "editaccount.h" | ||
48 | #include "maillist.h" | ||
49 | #include "addresslist.h" | ||
50 | |||
51 | #include <qpe/config.h> | ||
52 | |||
53 | class AccountList : public QList<MailAccount> | ||
54 | { | ||
55 | public: | ||
56 | Item newItem(Item d); | ||
57 | private: | ||
58 | MailAccount* dupl(MailAccount *in); | ||
59 | MailAccount *ac; | ||
60 | }; | ||
61 | |||
62 | //class EmailClient : public EmailClientBase | ||
63 | class EmailClient : public QMainWindow | ||
64 | { | ||
65 | Q_OBJECT | ||
66 | |||
67 | public: | ||
68 | EmailClient( QWidget* parent, const char* name, WFlags fl = 0 ); | ||
69 | ~EmailClient(); | ||
70 | AddressList* getAdrListRef(); | ||
71 | |||
72 | signals: | ||
73 | void composeRequested(); | ||
74 | void viewEmail(QListView *, Email *); | ||
75 | void mailUpdated(Email *); | ||
76 | void newCaption(const QString &); | ||
77 | |||
78 | public slots: | ||
79 | void compose(); | ||
80 | void cancel(); | ||
81 | void enqueMail(const Email &mail); | ||
82 | void setMailAccount(); | ||
83 | void sendQuedMail(); | ||
84 | void mailSent(); | ||
85 | void getNewMail(); | ||
86 | void getAllNewMail(); | ||
87 | void smtpError(int code); | ||
88 | void popError(int code); | ||
89 | void inboxItemSelected(); | ||
90 | void outboxItemSelected(); | ||
91 | void mailArrived(const Email &mail, bool fromDisk); | ||
92 | void allMailArrived(int); | ||
93 | void saveMail(QString fileName, QListView *view); | ||
94 | void selectAccount(int); | ||
95 | void editAccount(int); | ||
96 | void updateAccounts(); | ||
97 | void deleteAccount(int); | ||
98 | void deleteMail(EmailListItem *mailItem, bool &inbox); | ||
99 | void setTotalSize(int); | ||
100 | void setMailSize(int); | ||
101 | void setDownloadedSize(int); | ||
102 | void moveMailFront(Email *mailPtr); | ||
103 | |||
104 | private: | ||
105 | void init(); | ||
106 | void readMail(); | ||
107 | QString getPath(bool enclosurePath); | ||
108 | void readSettings(); | ||
109 | void saveSettings(); | ||
110 | |||
111 | private: | ||
112 | Config *mailconf; | ||
113 | int newAccountId, idCount, mailIdCount; | ||
114 | int accountIdCount; | ||
115 | AccountList accountList; | ||
116 | AddressList *addressList; | ||
117 | |||
118 | EditAccount *editAccountView; | ||
119 | EmailListItem *item; | ||
120 | EmailHandler *emailHandler; | ||
121 | QList<Email> quedMessages; | ||
122 | MailList mailDownloadList; | ||
123 | bool sending, receiving, previewingMail, allAccounts; | ||
124 | QString lineShift; | ||
125 | MailAccount account, *currentAccount; | ||
126 | |||
127 | QToolBar *bar; | ||
128 | QProgressBar *progressBar; | ||
129 | QStatusBar *statusBar; | ||
130 | QLabel *status1Label, *status2Label; | ||
131 | QAction *getMailButton; | ||
132 | QAction *sendMailButton; | ||
133 | QAction *composeButton; | ||
134 | QAction *cancelButton; | ||
135 | |||
136 | QMenuBar *mb; | ||
137 | QPopupMenu *selectAccountMenu; | ||
138 | QPopupMenu *editAccountMenu; | ||
139 | QPopupMenu *deleteAccountMenu; | ||
140 | |||
141 | QTabWidget* mailboxView; | ||
142 | QListView* inboxView; | ||
143 | QListView* outboxView; | ||
144 | |||
145 | QGridLayout* grid_2; | ||
146 | QGridLayout* grid_3; | ||
147 | }; | ||
148 | |||
149 | #endif // EMAILCLIENT_H | ||