-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,23 +1,26 @@ | |||
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: |
@@ -60,13 +63,24 @@ private: | |||
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 |