diff options
Diffstat (limited to 'framework/src/domain/maillistmodel.h')
-rw-r--r-- | framework/src/domain/maillistmodel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/src/domain/maillistmodel.h b/framework/src/domain/maillistmodel.h index 44347661..5ed081f4 100644 --- a/framework/src/domain/maillistmodel.h +++ b/framework/src/domain/maillistmodel.h | |||
@@ -32,6 +32,7 @@ class MailListModel : public QSortFilterProxyModel | |||
32 | Q_PROPERTY (QVariant parentFolder READ parentFolder WRITE setParentFolder) | 32 | Q_PROPERTY (QVariant parentFolder READ parentFolder WRITE setParentFolder) |
33 | Q_PROPERTY (QVariant mail READ mail WRITE setMail) | 33 | Q_PROPERTY (QVariant mail READ mail WRITE setMail) |
34 | Q_PROPERTY (QString filter READ filter WRITE setFilter) | 34 | Q_PROPERTY (QString filter READ filter WRITE setFilter) |
35 | Q_PROPERTY (bool isThreaded READ isThreaded NOTIFY isThreadedChanged) | ||
35 | 36 | ||
36 | public: | 37 | public: |
37 | enum Status { | 38 | enum Status { |
@@ -49,6 +50,8 @@ public: | |||
49 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; | 50 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; |
50 | bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE; | 51 | bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE; |
51 | 52 | ||
53 | bool isThreaded() const; | ||
54 | |||
52 | enum Roles { | 55 | enum Roles { |
53 | Subject = Qt::UserRole + 1, | 56 | Subject = Qt::UserRole + 1, |
54 | Sender, | 57 | Sender, |
@@ -84,6 +87,9 @@ public: | |||
84 | void setFilter(const QString &mail); | 87 | void setFilter(const QString &mail); |
85 | QString filter() const; | 88 | QString filter() const; |
86 | 89 | ||
90 | signals: | ||
91 | void isThreadedChanged(); | ||
92 | |||
87 | private: | 93 | private: |
88 | void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); | 94 | void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); |
89 | 95 | ||
@@ -91,4 +97,5 @@ private: | |||
91 | bool mFetchMails = false; | 97 | bool mFetchMails = false; |
92 | QSet<QByteArray> mFetchedMails; | 98 | QSet<QByteArray> mFetchedMails; |
93 | QByteArray mCurrentQueryItem; | 99 | QByteArray mCurrentQueryItem; |
100 | bool mIsThreaded = true; | ||
94 | }; | 101 | }; |