summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-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