Diffstat (limited to 'noncore/unsupported/mailit/readmail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/readmail.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/noncore/unsupported/mailit/readmail.h b/noncore/unsupported/mailit/readmail.h new file mode 100644 index 0000000..d0bb067 --- a/dev/null +++ b/noncore/unsupported/mailit/readmail.h | |||
@@ -0,0 +1,86 @@ | |||
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 READMAIL_H | ||
21 | #define READMAIL_H | ||
22 | |||
23 | #include <qaction.h> | ||
24 | #include <qmainwindow.h> | ||
25 | #include <qmenubar.h> | ||
26 | #include <qpopupmenu.h> | ||
27 | #include <qlabel.h> | ||
28 | #include <qlistview.h> | ||
29 | #include <qlayout.h> | ||
30 | #include <qtextview.h> | ||
31 | |||
32 | #include "emailhandler.h" | ||
33 | #include "emaillistitem.h" | ||
34 | #include "viewatt.h" | ||
35 | |||
36 | class ReadMail : public QMainWindow | ||
37 | { | ||
38 | Q_OBJECT | ||
39 | |||
40 | public: | ||
41 | ReadMail( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
42 | ~ReadMail(); | ||
43 | void update(QListView *thisView, Email *mailIn); | ||
44 | void updateView(); | ||
45 | void mailUpdated(Email *mailIn); | ||
46 | |||
47 | signals: | ||
48 | void cancelView(); | ||
49 | void replyRequested(Email &); | ||
50 | void removeItem(EmailListItem *, bool &); | ||
51 | void viewingMail(Email *); | ||
52 | |||
53 | public slots: | ||
54 | void close(); | ||
55 | void next(); | ||
56 | void previous(); | ||
57 | void deleteItem(); | ||
58 | void shiftText(); | ||
59 | void viewAttatchments(); | ||
60 | void reply(); | ||
61 | |||
62 | private: | ||
63 | void init(); | ||
64 | void updateButtons(); | ||
65 | |||
66 | private: | ||
67 | QListView *view; | ||
68 | EmailListItem *item; | ||
69 | bool plainTxt, inbox; | ||
70 | Email *mail; | ||
71 | ViewAtt *viewAtt; | ||
72 | |||
73 | QToolBar *bar; | ||
74 | QMenuBar *menu; | ||
75 | QPopupMenu *viewMenu, *mailMenu; | ||
76 | QAction *deleteButton; | ||
77 | QMimeSourceFactory *mime; | ||
78 | QAction *plainTextButton; | ||
79 | QAction *nextButton; | ||
80 | QTextView *emailView; | ||
81 | QAction *attatchmentsButton; | ||
82 | QAction *previousButton; | ||
83 | QAction *replyButton; | ||
84 | }; | ||
85 | |||
86 | #endif // READMAIL_H | ||