Diffstat (limited to 'noncore/unsupported/mail2/viewmail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/viewmail.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/viewmail.h b/noncore/unsupported/mail2/viewmail.h new file mode 100644 index 0000000..a013e43 --- a/dev/null +++ b/noncore/unsupported/mail2/viewmail.h | |||
@@ -0,0 +1,65 @@ | |||
1 | #ifndef VIEWMAIL_H | ||
2 | #define VIEWMAIL_H | ||
3 | |||
4 | #include <qlistview.h> | ||
5 | |||
6 | #include "viewmailbase.h" | ||
7 | #include "imapresponse.h" | ||
8 | #include "mailtable.h" | ||
9 | |||
10 | class AttachItemStore | ||
11 | { | ||
12 | public: | ||
13 | void setMimeType(QString mimeType) { _mimeType = mimeType; } | ||
14 | QString mimeType() { return _mimeType; } | ||
15 | void setFileName(QString fileName) { _fileName = fileName; } | ||
16 | QString fileName() { return _fileName; } | ||
17 | void setDescription(QString description) { _description = description; } | ||
18 | QString description() { return _description; } | ||
19 | void setPartNum(QString partNum) { _partNum = partNum; } | ||
20 | QString partNum() { return _partNum; } | ||
21 | |||
22 | private: | ||
23 | QString _mimeType, _fileName, _description, _partNum; | ||
24 | |||
25 | }; | ||
26 | |||
27 | class AttachItem : public QListViewItem | ||
28 | { | ||
29 | public: | ||
30 | AttachItem(QListView *parent, AttachItemStore &attachment); | ||
31 | AttachItem(QListViewItem *parent, AttachItemStore &attachment); | ||
32 | |||
33 | AttachItemStore attachItemStore() { return _attachItemStore; } | ||
34 | |||
35 | private: | ||
36 | AttachItemStore _attachItemStore; | ||
37 | |||
38 | }; | ||
39 | |||
40 | class ViewMail : public ViewMailBase | ||
41 | { | ||
42 | Q_OBJECT | ||
43 | |||
44 | public: | ||
45 | ViewMail(IMAPResponseFETCH &mail, IMAPHandler *handler, QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal); | ||
46 | |||
47 | protected: | ||
48 | //void fillList(IMAPResponseBODYSTRUCTURE &structure); | ||
49 | QString deHtml(const QString &string); | ||
50 | |||
51 | protected slots: | ||
52 | void slotReply(); | ||
53 | void slotForward(); | ||
54 | |||
55 | void slotIMAPUid(IMAPResponse &response); | ||
56 | |||
57 | private: | ||
58 | IMAPResponseFETCH _mail; | ||
59 | IMAPHandler *_handler; | ||
60 | QString _mailHtml; | ||
61 | bool _gotBody; | ||
62 | |||
63 | }; | ||
64 | |||
65 | #endif | ||