diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-14 20:41:35 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-14 20:41:35 +0100 |
commit | bf039428e22a10887e8d85a95ff5f38dc17e7ec2 (patch) | |
tree | 981390fff4d561760edaf1b7c8e3bbcb750ade09 /framework/domain/folderlistmodel.h | |
parent | 68f95cf68c3a8d29c2cc81929287eabb3a6d7682 (diff) | |
download | kube-bf039428e22a10887e8d85a95ff5f38dc17e7ec2.tar.gz kube-bf039428e22a10887e8d85a95ff5f38dc17e7ec2.zip |
Multi-Account support in the folderview
Diffstat (limited to 'framework/domain/folderlistmodel.h')
-rw-r--r-- | framework/domain/folderlistmodel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/domain/folderlistmodel.h b/framework/domain/folderlistmodel.h index 7844e59a..d30393db 100644 --- a/framework/domain/folderlistmodel.h +++ b/framework/domain/folderlistmodel.h | |||
@@ -25,10 +25,16 @@ | |||
25 | #include <QSharedPointer> | 25 | #include <QSharedPointer> |
26 | #include <QStringList> | 26 | #include <QStringList> |
27 | 27 | ||
28 | namespace Sink { | ||
29 | class Query; | ||
30 | } | ||
31 | |||
28 | class FolderListModel : public QIdentityProxyModel | 32 | class FolderListModel : public QIdentityProxyModel |
29 | { | 33 | { |
30 | Q_OBJECT | 34 | Q_OBJECT |
31 | 35 | ||
36 | Q_PROPERTY (QVariant accountId READ accountId WRITE setAccountId) | ||
37 | |||
32 | public: | 38 | public: |
33 | FolderListModel(QObject *parent = Q_NULLPTR); | 39 | FolderListModel(QObject *parent = Q_NULLPTR); |
34 | ~FolderListModel(); | 40 | ~FolderListModel(); |
@@ -45,6 +51,10 @@ public: | |||
45 | 51 | ||
46 | QHash<int, QByteArray> roleNames() const; | 52 | QHash<int, QByteArray> roleNames() const; |
47 | 53 | ||
54 | void setAccountId(const QVariant &accountId); | ||
55 | QVariant accountId() const; | ||
56 | |||
48 | private: | 57 | private: |
58 | void runQuery(const Sink::Query &query); | ||
49 | QSharedPointer<QAbstractItemModel> mModel; | 59 | QSharedPointer<QAbstractItemModel> mModel; |
50 | }; | 60 | }; |