summaryrefslogtreecommitdiffstats
path: root/framework/domain
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-28 16:37:32 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-29 19:01:14 +0200
commit9ab147575870f0303bb3dd36684e28f4afb27aca (patch)
tree9a67b1c0e568fb93297e15313b403ee81fafbd64 /framework/domain
parent23c08a63743c8e904a474df2a5dd9e733938b097 (diff)
downloadkube-9ab147575870f0303bb3dd36684e28f4afb27aca.tar.gz
kube-9ab147575870f0303bb3dd36684e28f4afb27aca.zip
Outboxmodel status
Diffstat (limited to 'framework/domain')
-rw-r--r--framework/domain/outboxmodel.cpp2
-rw-r--r--framework/domain/outboxmodel.h7
2 files changed, 8 insertions, 1 deletions
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
71 case Date: 71 case Date:
72 return mail->getDate(); 72 return mail->getDate();
73 case Status: 73 case Status:
74 return QString("pending"); //TODO 74 return PendingStatus;
75 case Id: 75 case Id:
76 return mail->identifier(); 76 return mail->identifier();
77 case DomainObject: 77 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
31 Q_OBJECT 31 Q_OBJECT
32 32
33public: 33public:
34 enum Status {
35 PendingStatus,
36 InProgressStatus,
37 ErrorStatus
38 };
39 Q_ENUMS(Status)
40
34 OutboxModel(QObject *parent = Q_NULLPTR); 41 OutboxModel(QObject *parent = Q_NULLPTR);
35 ~OutboxModel(); 42 ~OutboxModel();
36 43