From da955d84beda72e26ce641375bd6fc4159a4c9fc Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 25 Oct 2017 14:00:43 +0200 Subject: Prepare logview for error merging. --- framework/src/sinkfabric.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/src/sinkfabric.cpp') 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: SinkLog() << "Received notification: " << notification; QVariantMap message; if (notification.type == Sink::Notification::Warning) { - message["type"] = Notification::Warning; + message["type"] = "warning"; if (notification.code == Sink::ApplicationDomain::TransmissionError) { message["message"] = QObject::tr("Failed to send message."); } else { @@ -160,7 +160,7 @@ public: } else if (notification.type == Sink::Notification::Status) { return; } else if (notification.type == Sink::Notification::Error) { - message["type"] = Notification::Warning; + message["type"] = "error"; message["resource"] = QString{notification.resource}; message["details"] = notification.message; switch(notification.code) { @@ -188,12 +188,13 @@ public: Fabric::Fabric{}.postMessage("errorNotification", message); } else if (notification.type == Sink::Notification::Info) { if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { - message["type"] = Notification::Info; + message["type"] = "info"; message["message"] = QObject::tr("A message has been sent."); } else { return; } } else if (notification.type == Sink::Notification::Progress) { + message["type"] = "progress"; message["progress"] = notification.progress; message["total"] = notification.total; if (!notification.entities.isEmpty()) { -- cgit v1.2.3