diff options
Diffstat (limited to 'framework/mail/maillistmodel.h')
-rw-r--r-- | framework/mail/maillistmodel.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/framework/mail/maillistmodel.h b/framework/mail/maillistmodel.h index 72a26c59..b0a153a5 100644 --- a/framework/mail/maillistmodel.h +++ b/framework/mail/maillistmodel.h | |||
@@ -3,7 +3,11 @@ | |||
3 | #include <QAbstractListModel> | 3 | #include <QAbstractListModel> |
4 | #include <QStringList> | 4 | #include <QStringList> |
5 | 5 | ||
6 | class MailListModel : public QAbstractListModel | 6 | #include <akonadi2common/clientapi.h> |
7 | #include <akonadi2common/query.h> | ||
8 | #include <akonadi2common/listmodelresult.h> | ||
9 | |||
10 | class MailListModel : public ListModelResult<Akonadi2::ApplicationDomain::Mail::Ptr> | ||
7 | { | 11 | { |
8 | Q_OBJECT | 12 | Q_OBJECT |
9 | 13 | ||
@@ -17,13 +21,6 @@ public: | |||
17 | 21 | ||
18 | QHash<int, QByteArray> roleNames() const; | 22 | QHash<int, QByteArray> roleNames() const; |
19 | QVariant data(const QModelIndex &index, int role) const; | 23 | QVariant data(const QModelIndex &index, int role) const; |
20 | int rowCount(const QModelIndex &parent = QModelIndex()) const; | ||
21 | |||
22 | bool addMails(const QStringList &items); | ||
23 | void clearMails(); | ||
24 | 24 | ||
25 | void runQuery(const QString &query); | 25 | void runQuery(const QString &query); |
26 | 26 | }; | |
27 | private: | ||
28 | QStringList m_msgs; | ||
29 | }; \ No newline at end of file | ||