From 99293aec6986cd2a6e6022c5882a8f9de0335621 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 27 Mar 2017 11:50:25 +0200 Subject: Show folder sync status --- framework/domain/folderlistmodel.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/domain/folderlistmodel.h') 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 Q_PROPERTY (QVariant accountId READ accountId WRITE setAccountId) public: + enum Status { + NoStatus, + InProgressStatus, + ErrorStatus, + SuccessStatus, + }; + Q_ENUMS(Status) + FolderListModel(QObject *parent = Q_NULLPTR); ~FolderListModel(); @@ -45,7 +53,8 @@ public: Name = Qt::UserRole + 1, Icon, Id, - DomainObject + DomainObject, + Status }; Q_ENUMS(Roles) -- cgit v1.2.3