From 9ab147575870f0303bb3dd36684e28f4afb27aca Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 28 Mar 2017 16:37:32 +0200 Subject: Outboxmodel status --- framework/domain/outboxmodel.cpp | 2 +- framework/domain/outboxmodel.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'framework/domain') diff --git a/framework/domain/outboxmodel.cpp b/framework/domain/outboxmodel.cpp index 8494ca0d..b82c1c6b 100644 --- a/framework/domain/outboxmodel.cpp +++ b/framework/domain/outboxmodel.cpp @@ -71,7 +71,7 @@ QVariant OutboxModel::data(const QModelIndex &idx, int role) const case Date: return mail->getDate(); case Status: - return QString("pending"); //TODO + return PendingStatus; case Id: return mail->identifier(); case DomainObject: diff --git a/framework/domain/outboxmodel.h b/framework/domain/outboxmodel.h index 16b5dc49..86821bc2 100644 --- a/framework/domain/outboxmodel.h +++ b/framework/domain/outboxmodel.h @@ -31,6 +31,13 @@ class OutboxModel : public QSortFilterProxyModel Q_OBJECT public: + enum Status { + PendingStatus, + InProgressStatus, + ErrorStatus + }; + Q_ENUMS(Status) + OutboxModel(QObject *parent = Q_NULLPTR); ~OutboxModel(); -- cgit v1.2.3