-rw-r--r-- | noncore/net/mail/viewmail.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index f5033f0..18b1796 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h | |||
@@ -10,84 +10,86 @@ | |||
10 | #include <qmap.h> | 10 | #include <qmap.h> |
11 | #include <qstringlist.h> | 11 | #include <qstringlist.h> |
12 | #include <qvaluelist.h> | 12 | #include <qvaluelist.h> |
13 | 13 | ||
14 | class MailImageDlg; | 14 | class MailImageDlg; |
15 | 15 | ||
16 | namespace Opie { namespace MM { class OImageScrollView; } } | 16 | namespace Opie { namespace MM { class OImageScrollView; } } |
17 | 17 | ||
18 | class AttachItem : public QListViewItem | 18 | class AttachItem : public QListViewItem |
19 | { | 19 | { |
20 | public: | 20 | public: |
21 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 21 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
22 | const QString&fsize,int num,const QValueList<int>&path); | 22 | const QString&fsize,int num,const QValueList<int>&path); |
23 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 23 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
24 | const QString&fsize,int num,const QValueList<int>&path); | 24 | const QString&fsize,int num,const QValueList<int>&path); |
25 | int Partnumber() { return _partNum; } | 25 | int Partnumber() { return _partNum; } |
26 | bool isParentof(const QValueList<int>&path); | 26 | bool isParentof(const QValueList<int>&path); |
27 | 27 | ||
28 | private: | 28 | private: |
29 | int _partNum; | 29 | int _partNum; |
30 | /* needed for a better display of attachments */ | 30 | /* needed for a better display of attachments */ |
31 | QValueList<int> _path; | 31 | QValueList<int> _path; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | class ViewMail : public ViewMailBase | 34 | class ViewMail : public ViewMailBase |
35 | { | 35 | { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | 37 | ||
38 | public: | 38 | public: |
39 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); | 39 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); |
40 | ~ViewMail(); | 40 | ~ViewMail(); |
41 | 41 | ||
42 | void hide(); | 42 | void hide(); |
43 | void exec(); | 43 | void exec(); |
44 | void setMail(const RecMailP&mail ); | 44 | void setMail(const RecMailP&mail ); |
45 | void setBody(const RecBodyP&body); | 45 | void setBody(const RecBodyP&body); |
46 | bool deleted; | 46 | bool deleted; |
47 | 47 | ||
48 | protected: | 48 | protected: |
49 | QString deHtml(const QString &string); | 49 | QString deHtml(const QString &string); |
50 | AttachItem* searchParent(const QValueList<int>&path); | 50 | AttachItem* searchParent(const QValueList<int>&path); |
51 | AttachItem* lastChild(AttachItem*parent); | 51 | AttachItem* lastChild(AttachItem*parent); |
52 | 52 | ||
53 | Opie::MM::OImageScrollView*m_lastdlg; | 53 | Opie::MM::OImageScrollView*m_lastdlg; |
54 | 54 | ||
55 | protected slots: | 55 | protected slots: |
56 | void slotReply(); | 56 | void slotReply(); |
57 | void slotForward(); | 57 | void slotForward(); |
58 | void setText(); | 58 | void setMainText(); |
59 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); | 59 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); |
60 | void slotDeleteMail( ); | 60 | void slotDeleteMail( ); |
61 | void slotShowHtml( bool ); | 61 | void slotShowHtml( bool ); |
62 | void slotImageInline(bool); | 62 | void slotImageInline(bool); |
63 | 63 | ||
64 | private: | 64 | private: |
65 | void readConfig(); | 65 | void readConfig(); |
66 | 66 | ||
67 | bool _inLoop; | 67 | bool _inLoop; |
68 | QString m_mailHtml; | 68 | QString m_mailHtml; |
69 | bool m_gotBody; | 69 | bool m_gotBody; |
70 | RecBodyP m_body; | 70 | RecBodyP m_body; |
71 | RecMailP m_recMail; | 71 | RecMailP m_recMail; |
72 | bool m_showHtml:1; | 72 | bool m_showHtml:1; |
73 | bool m_PicsInline:1; | 73 | bool m_PicsInline:1; |
74 | unsigned int _icounter; | 74 | unsigned int _icounter; |
75 | int m_lastimagepart; | ||
76 | int m_lasttextpart; | ||
75 | 77 | ||
76 | // 0 from 1 subject 2 bodytext 3 date | 78 | // 0 from 1 subject 2 bodytext 3 date |
77 | QMap <int,QString> m_mail; | 79 | QMap <int,QString> m_mail; |
78 | // 0 to 1 cc 2 bcc | 80 | // 0 to 1 cc 2 bcc |
79 | QMap <int,QStringList> m_mail2; | 81 | QMap <int,QStringList> m_mail2; |
80 | }; | 82 | }; |
81 | 83 | ||
82 | class MailImageDlg:public Opie::Ui::ODialog | 84 | class MailImageDlg:public Opie::Ui::ODialog |
83 | { | 85 | { |
84 | Q_OBJECT | 86 | Q_OBJECT |
85 | public: | 87 | public: |
86 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); | 88 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); |
87 | ~MailImageDlg(); | 89 | ~MailImageDlg(); |
88 | void setName(const QString&); | 90 | void setName(const QString&); |
89 | protected: | 91 | protected: |
90 | Opie::MM::OImageScrollView*m_imageview; | 92 | Opie::MM::OImageScrollView*m_imageview; |
91 | }; | 93 | }; |
92 | 94 | ||
93 | #endif | 95 | #endif |