From 211fdde3ab546142e8aaf9d2b6508c949474b634 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 30 Mar 2017 15:18:02 +0200 Subject: Outbox: added resource state --- framework/domain/outboxmodel.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/domain/outboxmodel.h') diff --git a/framework/domain/outboxmodel.h b/framework/domain/outboxmodel.h index 4e226223..4be9c7f8 100644 --- a/framework/domain/outboxmodel.h +++ b/framework/domain/outboxmodel.h @@ -21,6 +21,7 @@ #pragma once #include +#include #include #include @@ -31,8 +32,11 @@ class OutboxModel : public QSortFilterProxyModel Q_OBJECT Q_PROPERTY (int count READ count NOTIFY countChanged) + Q_PROPERTY (int status READ status NOTIFY statusChanged) + public: enum Status { + NoStatus, PendingStatus, InProgressStatus, ErrorStatus @@ -60,9 +64,14 @@ public: void runQuery(const Sink::Query &query); int count() const; + int status() const; + signals: + void statusChanged(); void countChanged(); private: - QSharedPointer m_model; + QSharedPointer mModel; + QSharedPointer mNotifier; + int mStatus; }; -- cgit v1.2.3