diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-07 20:48:43 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-07 20:48:43 +0100 |
commit | 7ed0f7b6d60f2a85cb931080b3ae498f5ddabe0a (patch) | |
tree | 9ea3bc6359f12ef79170d19e7742549c44c8d46c /framework/mail/folderlistcontroller.h | |
parent | 552f6d4c02f0d760368a1f345068b469ee3af36a (diff) | |
download | kube-7ed0f7b6d60f2a85cb931080b3ae498f5ddabe0a.tar.gz kube-7ed0f7b6d60f2a85cb931080b3ae498f5ddabe0a.zip |
actually export folderlistmodel in the folderlist controller and use it in the desktop app
Diffstat (limited to 'framework/mail/folderlistcontroller.h')
-rw-r--r-- | framework/mail/folderlistcontroller.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/mail/folderlistcontroller.h b/framework/mail/folderlistcontroller.h index 18f5624d..84ce24be 100644 --- a/framework/mail/folderlistcontroller.h +++ b/framework/mail/folderlistcontroller.h | |||
@@ -1,15 +1,16 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "folderlistmodel.h" | ||
4 | |||
3 | #include <QObject> | 5 | #include <QObject> |
4 | #include <QScopedPointer> | 6 | #include <QScopedPointer> |
5 | #include <QString> | 7 | #include <QString> |
6 | #include <QAbstractItemModel> | ||
7 | 8 | ||
8 | class FolderListController : public QObject | 9 | class FolderListController : public QObject |
9 | { | 10 | { |
10 | Q_OBJECT | 11 | Q_OBJECT |
11 | Q_PROPERTY (QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | 12 | Q_PROPERTY (QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) |
12 | Q_PROPERTY (QAbstractItemModel *model READ model CONSTANT) | 13 | Q_PROPERTY (FolderListModel *model READ model CONSTANT) |
13 | 14 | ||
14 | public: | 15 | public: |
15 | explicit FolderListController(QObject *parent = Q_NULLPTR); | 16 | explicit FolderListController(QObject *parent = Q_NULLPTR); |
@@ -17,7 +18,7 @@ public: | |||
17 | QString accountId() const; | 18 | QString accountId() const; |
18 | void setAccountId(const QString &id); | 19 | void setAccountId(const QString &id); |
19 | 20 | ||
20 | QAbstractItemModel *model() const; | 21 | FolderListModel *model() const; |
21 | 22 | ||
22 | void loadFolders(const QString &id); | 23 | void loadFolders(const QString &id); |
23 | 24 | ||
@@ -31,5 +32,5 @@ public slots: | |||
31 | 32 | ||
32 | private: | 33 | private: |
33 | QString m_accountId; | 34 | QString m_accountId; |
34 | QScopedPointer<QAbstractItemModel> m_model; | 35 | QScopedPointer<FolderListModel> m_model; |
35 | }; | 36 | }; |