-rw-r--r-- | noncore/net/mail/viewmail.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index b60fb8e..297836b 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h | |||
@@ -1,35 +1,38 @@ | |||
1 | #ifndef VIEWMAIL_H | 1 | #ifndef VIEWMAIL_H |
2 | #define VIEWMAIL_H | 2 | #define VIEWMAIL_H |
3 | 3 | ||
4 | #include "viewmailbase.h" | ||
5 | #include <libmailwrapper/mailtypes.h> | ||
6 | |||
7 | #include <opie2/odialog.h> | ||
8 | |||
4 | #include <qlistview.h> | 9 | #include <qlistview.h> |
5 | #include <qmap.h> | 10 | #include <qmap.h> |
6 | #include <qstringlist.h> | 11 | #include <qstringlist.h> |
7 | #include <qvaluelist.h> | 12 | #include <qvaluelist.h> |
8 | 13 | ||
9 | #include "viewmailbase.h" | 14 | namespace Opie { namespace MM { class OImageScrollView; } } |
10 | #include <libmailwrapper/mailtypes.h> | ||
11 | |||
12 | 15 | ||
13 | class AttachItem : public QListViewItem | 16 | class AttachItem : public QListViewItem |
14 | { | 17 | { |
15 | public: | 18 | public: |
16 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 19 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
17 | const QString&fsize,int num,const QValueList<int>&path); | 20 | const QString&fsize,int num,const QValueList<int>&path); |
18 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 21 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
19 | const QString&fsize,int num,const QValueList<int>&path); | 22 | const QString&fsize,int num,const QValueList<int>&path); |
20 | int Partnumber() { return _partNum; } | 23 | int Partnumber() { return _partNum; } |
21 | bool isParentof(const QValueList<int>&path); | 24 | bool isParentof(const QValueList<int>&path); |
22 | 25 | ||
23 | private: | 26 | private: |
24 | int _partNum; | 27 | int _partNum; |
25 | /* needed for a better display of attachments */ | 28 | /* needed for a better display of attachments */ |
26 | QValueList<int> _path; | 29 | QValueList<int> _path; |
27 | }; | 30 | }; |
28 | 31 | ||
29 | class ViewMail : public ViewMailBase | 32 | class ViewMail : public ViewMailBase |
30 | { | 33 | { |
31 | Q_OBJECT | 34 | Q_OBJECT |
32 | 35 | ||
33 | public: | 36 | public: |
34 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); | 37 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); |
35 | ~ViewMail(); | 38 | ~ViewMail(); |
@@ -48,25 +51,36 @@ protected: | |||
48 | protected slots: | 51 | protected slots: |
49 | void slotReply(); | 52 | void slotReply(); |
50 | void slotForward(); | 53 | void slotForward(); |
51 | void setText(); | 54 | void setText(); |
52 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); | 55 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); |
53 | void slotDeleteMail( ); | 56 | void slotDeleteMail( ); |
54 | void slotShowHtml( bool ); | 57 | void slotShowHtml( bool ); |
55 | 58 | ||
56 | private: | 59 | private: |
57 | void readConfig(); | 60 | void readConfig(); |
58 | 61 | ||
59 | bool _inLoop; | 62 | bool _inLoop; |
60 | QString m_mailHtml; | 63 | QString m_mailHtml; |
61 | bool m_gotBody; | 64 | bool m_gotBody; |
62 | RecBodyP m_body; | 65 | RecBodyP m_body; |
63 | RecMailP m_recMail; | 66 | RecMailP m_recMail; |
64 | bool m_showHtml; | 67 | bool m_showHtml; |
65 | 68 | ||
66 | // 0 from 1 subject 2 bodytext 3 date | 69 | // 0 from 1 subject 2 bodytext 3 date |
67 | QMap <int,QString> m_mail; | 70 | QMap <int,QString> m_mail; |
68 | // 0 to 1 cc 2 bcc | 71 | // 0 to 1 cc 2 bcc |
69 | QMap <int,QStringList> m_mail2; | 72 | QMap <int,QStringList> m_mail2; |
70 | }; | 73 | }; |
71 | 74 | ||
75 | class MailImageDlg:public Opie::Ui::ODialog | ||
76 | { | ||
77 | Q_OBJECT | ||
78 | public: | ||
79 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); | ||
80 | ~MailImageDlg(); | ||
81 | void setName(const QString&); | ||
82 | protected: | ||
83 | Opie::MM::OImageScrollView*m_imageview; | ||
84 | }; | ||
85 | |||
72 | #endif | 86 | #endif |