diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-27 11:50:25 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-27 11:50:25 +0200 |
commit | 99293aec6986cd2a6e6022c5882a8f9de0335621 (patch) | |
tree | f4aafd9f9391e974c612a6fa67fa7f957a605c2f /framework/domain/folderlistmodel.h | |
parent | 5a5a8c11ed1b1a90452c4f7ed36650be36fbaa2c (diff) | |
download | kube-99293aec6986cd2a6e6022c5882a8f9de0335621.tar.gz kube-99293aec6986cd2a6e6022c5882a8f9de0335621.zip |
Show folder sync status
Diffstat (limited to 'framework/domain/folderlistmodel.h')
-rw-r--r-- | framework/domain/folderlistmodel.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/domain/folderlistmodel.h b/framework/domain/folderlistmodel.h index a2adc9a9..17645bb5 100644 --- a/framework/domain/folderlistmodel.h +++ b/framework/domain/folderlistmodel.h | |||
@@ -36,6 +36,14 @@ class FolderListModel : public QSortFilterProxyModel | |||
36 | Q_PROPERTY (QVariant accountId READ accountId WRITE setAccountId) | 36 | Q_PROPERTY (QVariant accountId READ accountId WRITE setAccountId) |
37 | 37 | ||
38 | public: | 38 | public: |
39 | enum Status { | ||
40 | NoStatus, | ||
41 | InProgressStatus, | ||
42 | ErrorStatus, | ||
43 | SuccessStatus, | ||
44 | }; | ||
45 | Q_ENUMS(Status) | ||
46 | |||
39 | FolderListModel(QObject *parent = Q_NULLPTR); | 47 | FolderListModel(QObject *parent = Q_NULLPTR); |
40 | ~FolderListModel(); | 48 | ~FolderListModel(); |
41 | 49 | ||
@@ -45,7 +53,8 @@ public: | |||
45 | Name = Qt::UserRole + 1, | 53 | Name = Qt::UserRole + 1, |
46 | Icon, | 54 | Icon, |
47 | Id, | 55 | Id, |
48 | DomainObject | 56 | DomainObject, |
57 | Status | ||
49 | }; | 58 | }; |
50 | Q_ENUMS(Roles) | 59 | Q_ENUMS(Roles) |
51 | 60 | ||