author | alwin <alwin> | 2004-10-28 02:14:18 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-10-28 02:14:18 (UTC) |
commit | 20992991cdc3116edbaedbbc58ba607f453acdbc (patch) (unidiff) | |
tree | 98a8e8dea7df50b7569e5fe7567a04a4060df520 | |
parent | 6205e982ec6d9ab1893919cd9c943c95b4baae33 (diff) | |
download | opie-20992991cdc3116edbaedbbc58ba607f453acdbc.zip opie-20992991cdc3116edbaedbbc58ba607f453acdbc.tar.gz opie-20992991cdc3116edbaedbbc58ba607f453acdbc.tar.bz2 |
oops - forgot removing a deklaration
-rw-r--r-- | noncore/net/mail/viewmail.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index 560453a..297836b 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h | |||
@@ -1,87 +1,86 @@ | |||
1 | #ifndef VIEWMAIL_H | 1 | #ifndef VIEWMAIL_H |
2 | #define VIEWMAIL_H | 2 | #define VIEWMAIL_H |
3 | 3 | ||
4 | #include "viewmailbase.h" | 4 | #include "viewmailbase.h" |
5 | #include <libmailwrapper/mailtypes.h> | 5 | #include <libmailwrapper/mailtypes.h> |
6 | 6 | ||
7 | #include <opie2/odialog.h> | 7 | #include <opie2/odialog.h> |
8 | 8 | ||
9 | #include <qlistview.h> | 9 | #include <qlistview.h> |
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 | namespace Opie { namespace MM { class OImageScrollView; } } | 14 | namespace Opie { namespace MM { class OImageScrollView; } } |
15 | 15 | ||
16 | class AttachItem : public QListViewItem | 16 | class AttachItem : public QListViewItem |
17 | { | 17 | { |
18 | public: | 18 | public: |
19 | 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, |
20 | const QString&fsize,int num,const QValueList<int>&path); | 20 | const QString&fsize,int num,const QValueList<int>&path); |
21 | 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, |
22 | const QString&fsize,int num,const QValueList<int>&path); | 22 | const QString&fsize,int num,const QValueList<int>&path); |
23 | int Partnumber() { return _partNum; } | 23 | int Partnumber() { return _partNum; } |
24 | bool isParentof(const QValueList<int>&path); | 24 | bool isParentof(const QValueList<int>&path); |
25 | 25 | ||
26 | private: | 26 | private: |
27 | int _partNum; | 27 | int _partNum; |
28 | /* needed for a better display of attachments */ | 28 | /* needed for a better display of attachments */ |
29 | QValueList<int> _path; | 29 | QValueList<int> _path; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | class ViewMail : public ViewMailBase | 32 | class ViewMail : public ViewMailBase |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | 35 | ||
36 | public: | 36 | public: |
37 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); | 37 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); |
38 | ~ViewMail(); | 38 | ~ViewMail(); |
39 | 39 | ||
40 | void hide(); | 40 | void hide(); |
41 | void exec(); | 41 | void exec(); |
42 | void setMail(const RecMailP&mail ); | 42 | void setMail(const RecMailP&mail ); |
43 | void setBody(const RecBodyP&body); | 43 | void setBody(const RecBodyP&body); |
44 | bool deleted; | 44 | bool deleted; |
45 | 45 | ||
46 | protected: | 46 | protected: |
47 | QString deHtml(const QString &string); | 47 | QString deHtml(const QString &string); |
48 | AttachItem* searchParent(const QValueList<int>&path); | 48 | AttachItem* searchParent(const QValueList<int>&path); |
49 | AttachItem* lastChild(AttachItem*parent); | 49 | AttachItem* lastChild(AttachItem*parent); |
50 | 50 | ||
51 | protected slots: | 51 | protected slots: |
52 | void slotReply(); | 52 | void slotReply(); |
53 | void slotForward(); | 53 | void slotForward(); |
54 | void setText(); | 54 | void setText(); |
55 | void setHeader(); | ||
56 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); | 55 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); |
57 | void slotDeleteMail( ); | 56 | void slotDeleteMail( ); |
58 | void slotShowHtml( bool ); | 57 | void slotShowHtml( bool ); |
59 | 58 | ||
60 | private: | 59 | private: |
61 | void readConfig(); | 60 | void readConfig(); |
62 | 61 | ||
63 | bool _inLoop; | 62 | bool _inLoop; |
64 | QString m_mailHtml; | 63 | QString m_mailHtml; |
65 | bool m_gotBody; | 64 | bool m_gotBody; |
66 | RecBodyP m_body; | 65 | RecBodyP m_body; |
67 | RecMailP m_recMail; | 66 | RecMailP m_recMail; |
68 | bool m_showHtml; | 67 | bool m_showHtml; |
69 | 68 | ||
70 | // 0 from 1 subject 2 bodytext 3 date | 69 | // 0 from 1 subject 2 bodytext 3 date |
71 | QMap <int,QString> m_mail; | 70 | QMap <int,QString> m_mail; |
72 | // 0 to 1 cc 2 bcc | 71 | // 0 to 1 cc 2 bcc |
73 | QMap <int,QStringList> m_mail2; | 72 | QMap <int,QStringList> m_mail2; |
74 | }; | 73 | }; |
75 | 74 | ||
76 | class MailImageDlg:public Opie::Ui::ODialog | 75 | class MailImageDlg:public Opie::Ui::ODialog |
77 | { | 76 | { |
78 | Q_OBJECT | 77 | Q_OBJECT |
79 | public: | 78 | public: |
80 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); | 79 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); |
81 | ~MailImageDlg(); | 80 | ~MailImageDlg(); |
82 | void setName(const QString&); | 81 | void setName(const QString&); |
83 | protected: | 82 | protected: |
84 | Opie::MM::OImageScrollView*m_imageview; | 83 | Opie::MM::OImageScrollView*m_imageview; |
85 | }; | 84 | }; |
86 | 85 | ||
87 | #endif | 86 | #endif |