summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/emailclient.h
Unidiff
Diffstat (limited to 'noncore/unsupported/mailit/emailclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mailit/emailclient.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mailit/emailclient.h b/noncore/unsupported/mailit/emailclient.h
index 135bfaa..80457f9 100644
--- a/noncore/unsupported/mailit/emailclient.h
+++ b/noncore/unsupported/mailit/emailclient.h
@@ -1,90 +1,90 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2001 Trolltech AS. All rights reserved. 2** Copyright (C) 2001 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qt Palmtop Environment. 4** This file is part of Qt Palmtop Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 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 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 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 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. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef EMAILCLIENT_H 20#ifndef EMAILCLIENT_H
21#define EMAILCLIENT_H 21#define EMAILCLIENT_H
22 22
23#include <qlist.h> 23#include <qlist.h>
24#include <qcstring.h> 24#include <qcstring.h>
25#include <qmainwindow.h> 25#include <qmainwindow.h>
26 26
27#include <qtoolbar.h> 27#include <qtoolbar.h>
28#include <qcheckbox.h> 28#include <qcheckbox.h>
29#include <qlabel.h> 29#include <qlabel.h>
30#include <qlineedit.h> 30#include <qlineedit.h>
31#include <qlistview.h> 31#include <qlistview.h>
32#include <qtabwidget.h>
33#include <qaction.h> 32#include <qaction.h>
34#include <qlayout.h> 33#include <qlayout.h>
35#include <qtooltip.h> 34#include <qtooltip.h>
36#include <qimage.h> 35#include <qimage.h>
37#include <qpixmap.h> 36#include <qpixmap.h>
38#include <qstringlist.h> 37#include <qstringlist.h>
39#include <qprogressbar.h> 38#include <qprogressbar.h>
40#include <qstatusbar.h> 39#include <qstatusbar.h>
41#include <qdir.h> 40#include <qdir.h>
42#include <stdlib.h> 41#include <stdlib.h>
42#include <opie/otabwidget.h>
43 43
44#include "emailhandler.h" 44#include "emailhandler.h"
45#include "emaillistitem.h" 45#include "emaillistitem.h"
46#include "textparser.h" 46#include "textparser.h"
47#include "editaccount.h" 47#include "editaccount.h"
48#include "maillist.h" 48#include "maillist.h"
49#include "addresslist.h" 49#include "addresslist.h"
50 50
51#include <qpe/config.h> 51#include <qpe/config.h>
52 52
53class AccountList : public QList<MailAccount> 53class AccountList : public QList<MailAccount>
54{ 54{
55public: 55public:
56 Item newItem(Item d); 56 Item newItem(Item d);
57private: 57private:
58 MailAccount* dupl(MailAccount *in); 58 MailAccount* dupl(MailAccount *in);
59 MailAccount *ac; 59 MailAccount *ac;
60}; 60};
61 61
62//class EmailClient : public EmailClientBase 62//class EmailClient : public EmailClientBase
63class EmailClient : public QMainWindow 63class EmailClient : public QMainWindow
64{ 64{
65 Q_OBJECT 65 Q_OBJECT
66 66
67public: 67public:
68 EmailClient( QWidget* parent, const char* name, WFlags fl = 0 ); 68 EmailClient( QWidget* parent, const char* name, WFlags fl = 0 );
69 ~EmailClient(); 69 ~EmailClient();
70 AddressList* getAdrListRef(); 70 AddressList* getAdrListRef();
71 71
72signals: 72signals:
73 void composeRequested(); 73 void composeRequested();
74 void viewEmail(QListView *, Email *); 74 void viewEmail(QListView *, Email *);
75 void mailUpdated(Email *); 75 void mailUpdated(Email *);
76 void newCaption(const QString &); 76 void newCaption(const QString &);
77 77
78public slots: 78public slots:
79 void compose(); 79 void compose();
80 void cancel(); 80 void cancel();
81 void enqueMail(const Email &mail); 81 void enqueMail(const Email &mail);
82 void setMailAccount(); 82 void setMailAccount();
83 void sendQuedMail(); 83 void sendQuedMail();
84 void mailSent(); 84 void mailSent();
85 void getNewMail(); 85 void getNewMail();
86 void getAllNewMail(); 86 void getAllNewMail();
87 void smtpError(int code); 87 void smtpError(int code);
88 void popError(int code); 88 void popError(int code);
89 void inboxItemSelected(); 89 void inboxItemSelected();
90 void outboxItemSelected(); 90 void outboxItemSelected();
@@ -93,57 +93,57 @@ public slots:
93 void saveMail(QString fileName, QListView *view); 93 void saveMail(QString fileName, QListView *view);
94 void selectAccount(int); 94 void selectAccount(int);
95 void editAccount(int); 95 void editAccount(int);
96 void updateAccounts(); 96 void updateAccounts();
97 void deleteAccount(int); 97 void deleteAccount(int);
98 void deleteMail(EmailListItem *mailItem, bool &inbox); 98 void deleteMail(EmailListItem *mailItem, bool &inbox);
99 void setTotalSize(int); 99 void setTotalSize(int);
100 void setMailSize(int); 100 void setMailSize(int);
101 void setDownloadedSize(int); 101 void setDownloadedSize(int);
102 void moveMailFront(Email *mailPtr); 102 void moveMailFront(Email *mailPtr);
103 103
104private: 104private:
105 void init(); 105 void init();
106 void readMail(); 106 void readMail();
107 QString getPath(bool enclosurePath); 107 QString getPath(bool enclosurePath);
108 void readSettings(); 108 void readSettings();
109 void saveSettings(); 109 void saveSettings();
110 110
111private: 111private:
112 Config *mailconf; 112 Config *mailconf;
113 int newAccountId, idCount, mailIdCount; 113 int newAccountId, idCount, mailIdCount;
114 int accountIdCount; 114 int accountIdCount;
115 AccountList accountList; 115 AccountList accountList;
116 AddressList *addressList; 116 AddressList *addressList;
117 117
118 EditAccount *editAccountView; 118 EditAccount *editAccountView;
119 EmailListItem *item; 119 EmailListItem *item;
120 EmailHandler *emailHandler; 120 EmailHandler *emailHandler;
121 QList<Email> quedMessages; 121 QList<Email> quedMessages;
122 MailList mailDownloadList; 122 MailList mailDownloadList;
123 bool sending, receiving, previewingMail, allAccounts; 123 bool sending, receiving, previewingMail, allAccounts;
124 QString lineShift; 124 QString lineShift;
125 MailAccount account, *currentAccount; 125 MailAccount account, *currentAccount;
126 126
127 QToolBar *bar; 127 QToolBar *bar;
128 QProgressBar *progressBar; 128 QProgressBar *progressBar;
129 QStatusBar *statusBar; 129 QStatusBar *statusBar;
130 QLabel *status1Label, *status2Label; 130 QLabel *status1Label, *status2Label;
131 QAction *getMailButton; 131 QAction *getMailButton;
132 QAction *sendMailButton; 132 QAction *sendMailButton;
133 QAction *composeButton; 133 QAction *composeButton;
134 QAction *cancelButton; 134 QAction *cancelButton;
135 135
136 QMenuBar *mb; 136 QMenuBar *mb;
137 QPopupMenu *selectAccountMenu; 137 QPopupMenu *selectAccountMenu;
138 QPopupMenu *editAccountMenu; 138 QPopupMenu *editAccountMenu;
139 QPopupMenu *deleteAccountMenu; 139 QPopupMenu *deleteAccountMenu;
140 140
141 QTabWidget* mailboxView; 141 OTabWidget* mailboxView;
142 QListView* inboxView; 142 QListView* inboxView;
143 QListView* outboxView; 143 QListView* outboxView;
144 144
145 QGridLayout* grid_2; 145 QGridLayout* grid_2;
146 QGridLayout* grid_3; 146 QGridLayout* grid_3;
147}; 147};
148 148
149#endif // EMAILCLIENT_H 149#endif // EMAILCLIENT_H