author | harlekin <harlekin> | 2003-12-09 18:02:33 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-09 18:02:33 (UTC) |
commit | 0b7d74768f00be986f44bfbd61a6342fc854cc3a (patch) (unidiff) | |
tree | 2e314f0d73e3c720783618870fb6d2e16b4acf3e /noncore/net/mail/viewmail.h | |
parent | a30efc4ca72e7689ee35b178d28db82054431fe9 (diff) | |
download | opie-0b7d74768f00be986f44bfbd61a6342fc854cc3a.zip opie-0b7d74768f00be986f44bfbd61a6342fc854cc3a.tar.gz opie-0b7d74768f00be986f44bfbd61a6342fc854cc3a.tar.bz2 |
more updates
-rw-r--r-- | noncore/net/mail/viewmail.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index 9d3c6e4..615939a 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h | |||
@@ -1,17 +1,18 @@ | |||
1 | #ifndef VIEWMAIL_H | 1 | #ifndef VIEWMAIL_H |
2 | #define VIEWMAIL_H | 2 | #define VIEWMAIL_H |
3 | 3 | ||
4 | #include <qlistview.h> | 4 | #include <qlistview.h> |
5 | #include <qmap.h> | 5 | #include <qmap.h> |
6 | #include <qstringlist.h> | ||
6 | 7 | ||
7 | #include "viewmailbase.h" | 8 | #include "viewmailbase.h" |
8 | //#include "imapresponse.h" | 9 | //#include "imapresponse.h" |
9 | //#include "mailtable.h" | 10 | //#include "mailtable.h" |
10 | 11 | ||
11 | class AttachItemStore | 12 | class AttachItemStore |
12 | { | 13 | { |
13 | public: | 14 | public: |
14 | void setMimeType(QString mimeType) { _mimeType = mimeType; } | 15 | void setMimeType(QString mimeType) { _mimeType = mimeType; } |
15 | QString mimeType() { return _mimeType; } | 16 | QString mimeType() { return _mimeType; } |
16 | void setFileName(QString fileName) { _fileName = fileName; } | 17 | void setFileName(QString fileName) { _fileName = fileName; } |
17 | QString fileName() { return _fileName; } | 18 | QString fileName() { return _fileName; } |
@@ -40,36 +41,45 @@ private: | |||
40 | 41 | ||
41 | class ViewMail : public ViewMailBase | 42 | class ViewMail : public ViewMailBase |
42 | { | 43 | { |
43 | Q_OBJECT | 44 | Q_OBJECT |
44 | 45 | ||
45 | public: | 46 | public: |
46 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal); | 47 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal); |
47 | ~ViewMail(); | 48 | ~ViewMail(); |
48 | 49 | ||
49 | void hide(); | 50 | void hide(); |
50 | void exec(); | 51 | void exec(); |
51 | static QString appName() { return QString::fromLatin1("mail"); } | 52 | static QString appName() { return QString::fromLatin1("mail"); } |
52 | void setMailInfo( const QString & from, const QString & to, const QString & subject, const QString & cc, const QString & bcc, const QString & bodytext ); | 53 | void setMailInfo( const QString & from, const QStringList & to, const QString & subject, const QStringList & cc, const QStringList & bcc,const QString & date, const QString & bodytext ); |
53 | 54 | ||
54 | protected: | 55 | protected: |
55 | //void fillList(IMAPResponseBODYSTRUCTURE &structure); | 56 | //void fillList(IMAPResponseBODYSTRUCTURE &structure); |
56 | QString deHtml(const QString &string); | 57 | QString deHtml(const QString &string); |
57 | 58 | ||
58 | protected slots: | 59 | protected slots: |
59 | void slotReply(); | 60 | void slotReply(); |
60 | void slotForward(); | 61 | void slotForward(); |
61 | void setText(); | 62 | void setText(); |
62 | 63 | ||
63 | //void slotIMAPUid(IMAPResponse &response); | 64 | //void slotIMAPUid(IMAPResponse &response); |
64 | 65 | ||
65 | private: | 66 | private: |
66 | bool _inLoop; | 67 | bool _inLoop; |
67 | //IMAPResponseFETCH _mail; | 68 | //IMAPResponseFETCH _mail; |
68 | //IMAPHandler *_handler; | 69 | //IMAPHandler *_handler; |
69 | QString _mailHtml; | 70 | QString _mailHtml; |
70 | bool _gotBody; | 71 | bool _gotBody; |
72 | |||
73 | // 0 from | ||
74 | // 1 subject | ||
75 | // 2 bodytext | ||
76 | // 3 date | ||
71 | QMap <int,QString> m_mail; | 77 | QMap <int,QString> m_mail; |
78 | // 0 to | ||
79 | // 1 cc | ||
80 | // 2 bcc | ||
81 | QMap <int,QStringList> m_mail2; | ||
72 | 82 | ||
73 | }; | 83 | }; |
74 | 84 | ||
75 | #endif | 85 | #endif |