author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/viewmail.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kmicromail/viewmail.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kmicromail/viewmail.h b/kmicromail/viewmail.h index bb5b685..6cf6efb 100644 --- a/kmicromail/viewmail.h +++ b/kmicromail/viewmail.h | |||
@@ -1,93 +1,93 @@ | |||
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 <qdialog.h> | 7 | #include <qdialog.h> |
8 | #include <qapplication.h> | 8 | #include <qapplication.h> |
9 | 9 | ||
10 | #include <qlistview.h> | 10 | #include <q3listview.h> |
11 | #include <qmap.h> | 11 | #include <qmap.h> |
12 | #include <klocale.h> | 12 | #include <klocale.h> |
13 | #include <qstringlist.h> | 13 | #include <qstringlist.h> |
14 | #include <qvaluelist.h> | 14 | #include <q3valuelist.h> |
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 Q3ListViewItem |
19 | { | 19 | { |
20 | public: | 20 | public: |
21 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 21 | AttachItem(Q3ListView * parent,Q3ListViewItem *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 Q3ValueList<int>&path); |
23 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 23 | AttachItem(Q3ListViewItem * parent,Q3ListViewItem *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 Q3ValueList<int>&path); |
25 | int Partnumber() { return _partNum; } | 25 | int Partnumber() { return _partNum; } |
26 | bool isParentof(const QValueList<int>&path); | 26 | bool isParentof(const Q3ValueList<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 | Q3ValueList<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, Qt::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 | signals: | 47 | signals: |
48 | void showNextMail(ViewMail*); | 48 | void showNextMail(ViewMail*); |
49 | void deleteAndDisplayNextMail(ViewMail *); | 49 | void deleteAndDisplayNextMail(ViewMail *); |
50 | void signalDownloadMail(); | 50 | void signalDownloadMail(); |
51 | protected: | 51 | protected: |
52 | QString deHtml(const QString &string); | 52 | QString deHtml(const QString &string); |
53 | AttachItem* searchParent(const QValueList<int>&path); | 53 | AttachItem* searchParent(const Q3ValueList<int>&path); |
54 | AttachItem* lastChild(AttachItem*parent); | 54 | AttachItem* lastChild(AttachItem*parent); |
55 | 55 | ||
56 | protected slots: | 56 | protected slots: |
57 | void slotNextMail(); | 57 | void slotNextMail(); |
58 | void slotReply(); | 58 | void slotReply(); |
59 | void slotForward(); | 59 | void slotForward(); |
60 | void setText(); | 60 | void setText(); |
61 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); | 61 | void slotItemClicked( Q3ListViewItem * item , const QPoint & point, int c ); |
62 | void slotDeleteMail( ); | 62 | void slotDeleteMail( ); |
63 | void slotShowHtml( bool ); | 63 | void slotShowHtml( bool ); |
64 | void slotViewSource(); | 64 | void slotViewSource(); |
65 | 65 | ||
66 | private: | 66 | private: |
67 | void readConfig(); | 67 | void readConfig(); |
68 | bool sourceOn;; | 68 | bool sourceOn;; |
69 | bool _inLoop; | 69 | bool _inLoop; |
70 | QString m_mailHtml; | 70 | QString m_mailHtml; |
71 | bool m_gotBody; | 71 | bool m_gotBody; |
72 | RecBodyP m_body; | 72 | RecBodyP m_body; |
73 | RecMailP m_recMail; | 73 | RecMailP m_recMail; |
74 | bool m_showHtml; | 74 | bool m_showHtml; |
75 | 75 | ||
76 | // 0 from 1 subject 2 bodytext 3 date | 76 | // 0 from 1 subject 2 bodytext 3 date |
77 | QMap <int,QString> m_mail; | 77 | QMap <int,QString> m_mail; |
78 | // 0 to 1 cc 2 bcc | 78 | // 0 to 1 cc 2 bcc |
79 | QMap <int,QStringList> m_mail2; | 79 | QMap <int,QStringList> m_mail2; |
80 | }; | 80 | }; |
81 | 81 | ||
82 | class MailImageDlg:public QDialog | 82 | class MailImageDlg:public QDialog |
83 | { | 83 | { |
84 | Q_OBJECT | 84 | Q_OBJECT |
85 | public: | 85 | public: |
86 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); | 86 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, Qt::WFlags f = 0); |
87 | ~MailImageDlg(); | 87 | ~MailImageDlg(); |
88 | void setName(const QString&); | 88 | void setName(const QString&); |
89 | protected: | 89 | protected: |
90 | //Opie::MM::OImageScrollView*m_imageview; | 90 | //Opie::MM::OImageScrollView*m_imageview; |
91 | }; | 91 | }; |
92 | 92 | ||
93 | #endif | 93 | #endif |