From d4bd3ad8d6d1f75b6c284336148e3a2c71dc1882 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 2 May 2017 09:25:13 +0200 Subject: Removed the old models that we're not even using anymore --- framework/src/domain/messageparser.h | 44 ------------------------------------ 1 file changed, 44 deletions(-) (limited to 'framework/src/domain/messageparser.h') diff --git a/framework/src/domain/messageparser.h b/framework/src/domain/messageparser.h index 2c4febaf..6d52c4b2 100644 --- a/framework/src/domain/messageparser.h +++ b/framework/src/domain/messageparser.h @@ -27,17 +27,10 @@ #include #include -#include 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; @@ -47,9 +40,6 @@ class MessageParser : public QObject { Q_OBJECT Q_PROPERTY (QVariant message READ message WRITE setMessage) - Q_PROPERTY (QString html READ html NOTIFY htmlChanged) - Q_PROPERTY (bool isSimpleHtml READ isSimpleHtml NOTIFY htmlChanged) - Q_PROPERTY (QAbstractItemModel* partTree READ partTree NOTIFY htmlChanged) Q_PROPERTY (QAbstractItemModel* newTree READ newTree NOTIFY htmlChanged) Q_PROPERTY (QAbstractItemModel* attachments READ attachments NOTIFY htmlChanged) @@ -57,12 +47,8 @@ public: explicit MessageParser(QObject *parent = Q_NULLPTR); ~MessageParser(); - QString html() const; - bool isSimpleHtml() const; - QVariant message() const; void setMessage(const QVariant &to); - QAbstractItemModel *partTree() const; QAbstractItemModel *newTree() const; QAbstractItemModel *attachments() const; @@ -73,36 +59,6 @@ private: std::unique_ptr d; }; -class PartModel : public QAbstractItemModel { - Q_OBJECT -public: - PartModel(QSharedPointer partTree, std::shared_ptr parser); - -public: - enum Roles { - Text = Qt::UserRole + 1, - IsHtml, - IsEncrypted, - IsAttachment, - HasContent, - Type, - IsHidden - }; - - QHash roleNames() const Q_DECL_OVERRIDE; - QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; - QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE; - int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; - int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; - -private: - QSharedPointer mPartTree; - QMap mEmbeddedPartMap; - std::shared_ptr mParser; -}; - - class NewModel : public QAbstractItemModel { Q_OBJECT public: -- cgit v1.2.3