author | alwin <alwin> | 2004-01-02 02:47:12 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-02 02:47:12 (UTC) |
commit | fec64a3eb7b198666eb9937df47323bad94b1ba0 (patch) (side-by-side diff) | |
tree | a781a5999d7efb3b3926aa056bf8bac471f5e484 /noncore/net/mail/viewmail.h | |
parent | 5fbf2a6b9cda98ab16fa1f0e1ac848a9bb523a72 (diff) | |
download | opie-fec64a3eb7b198666eb9937df47323bad94b1ba0.zip opie-fec64a3eb7b198666eb9937df47323bad94b1ba0.tar.gz opie-fec64a3eb7b198666eb9937df47323bad94b1ba0.tar.bz2 |
display of attachments has a hierarchic structure (if needed)
-rw-r--r-- | noncore/net/mail/viewmail.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index bf7a4dd..b3d3b4e 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h @@ -1,25 +1,31 @@ #ifndef VIEWMAIL_H #define VIEWMAIL_H #include <qlistview.h> #include <qmap.h> #include <qstringlist.h> +#include <qvaluelist.h> #include "viewmailbase.h" #include "mailtypes.h" class AttachItem : public QListViewItem { public: AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, - const QString&fsize,int num); + const QString&fsize,int num,const QValueList<int>&path); + AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, + const QString&fsize,int num,const QValueList<int>&path); int Partnumber() { return _partNum; } + bool isParentof(const QValueList<int>&path); private: int _partNum; + /* needed for a better display of attachments */ + QValueList<int> _path; }; class ViewMail : public ViewMailBase { Q_OBJECT @@ -32,12 +38,13 @@ public: void setMail( RecMail mail ); void setBody( RecBody body ); bool deleted; protected: QString deHtml(const QString &string); + AttachItem* searchParent(const QValueList<int>&path); protected slots: void slotReply(); void slotForward(); void setText(); void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); |