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