From d708e1310cc8e65fab078eb6b5b4a325de462a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Knau=C3=9F?= Date: Tue, 18 Oct 2016 15:30:11 +0200 Subject: start implementing a nested model with sig->enc->part->content --- framework/domain/messageparser.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework/domain/messageparser.h') diff --git a/framework/domain/messageparser.h b/framework/domain/messageparser.h index 5eb355e7..e3b81dd7 100644 --- a/framework/domain/messageparser.h +++ b/framework/domain/messageparser.h @@ -33,11 +33,15 @@ class QAbstractItemModel; class Parser; class Part; +class Encryption; +class Signature; typedef std::shared_ptr PartPtr; class Content; typedef std::shared_ptr ContentPtr; class MessagePartPrivate; +class NewModelPrivate; + class MessageParser : public QObject { Q_OBJECT @@ -123,6 +127,7 @@ class NewModel : public QAbstractItemModel { Q_OBJECT public: NewModel(std::shared_ptr parser); + ~NewModel(); public: enum Roles { @@ -140,8 +145,6 @@ public: int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; private: - std::shared_ptr mParser; - QVector mParts; - QMap> mContentMap; + std::unique_ptr d; }; -- cgit v1.2.3