summaryrefslogtreecommitdiffstats
path: root/framework/src/sinkfabric.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/sinkfabric.cpp')
-rw-r--r--framework/src/sinkfabric.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp
index 9768fa96..cdaa9a90 100644
--- a/framework/src/sinkfabric.cpp
+++ b/framework/src/sinkfabric.cpp
@@ -151,7 +151,7 @@ public:
151 SinkLog() << "Received notification: " << notification; 151 SinkLog() << "Received notification: " << notification;
152 QVariantMap message; 152 QVariantMap message;
153 if (notification.type == Sink::Notification::Warning) { 153 if (notification.type == Sink::Notification::Warning) {
154 message["type"] = Notification::Warning; 154 message["type"] = "warning";
155 if (notification.code == Sink::ApplicationDomain::TransmissionError) { 155 if (notification.code == Sink::ApplicationDomain::TransmissionError) {
156 message["message"] = QObject::tr("Failed to send message."); 156 message["message"] = QObject::tr("Failed to send message.");
157 } else { 157 } else {
@@ -160,7 +160,7 @@ public:
160 } else if (notification.type == Sink::Notification::Status) { 160 } else if (notification.type == Sink::Notification::Status) {
161 return; 161 return;
162 } else if (notification.type == Sink::Notification::Error) { 162 } else if (notification.type == Sink::Notification::Error) {
163 message["type"] = Notification::Warning; 163 message["type"] = "error";
164 message["resource"] = QString{notification.resource}; 164 message["resource"] = QString{notification.resource};
165 message["details"] = notification.message; 165 message["details"] = notification.message;
166 switch(notification.code) { 166 switch(notification.code) {
@@ -188,12 +188,13 @@ public:
188 Fabric::Fabric{}.postMessage("errorNotification", message); 188 Fabric::Fabric{}.postMessage("errorNotification", message);
189 } else if (notification.type == Sink::Notification::Info) { 189 } else if (notification.type == Sink::Notification::Info) {
190 if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { 190 if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) {
191 message["type"] = Notification::Info; 191 message["type"] = "info";
192 message["message"] = QObject::tr("A message has been sent."); 192 message["message"] = QObject::tr("A message has been sent.");
193 } else { 193 } else {
194 return; 194 return;
195 } 195 }
196 } else if (notification.type == Sink::Notification::Progress) { 196 } else if (notification.type == Sink::Notification::Progress) {
197 message["type"] = "progress";
197 message["progress"] = notification.progress; 198 message["progress"] = notification.progress;
198 message["total"] = notification.total; 199 message["total"] = notification.total;
199 if (!notification.entities.isEmpty()) { 200 if (!notification.entities.isEmpty()) {