diff options
author | Rémi Nicole <nicole@kolabsystems.com> | 2018-02-26 18:19:43 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-26 18:20:13 +0100 |
commit | 331f75d4da056ddb235be45a3784d2c19e545211 (patch) | |
tree | 64adc5432725e6d484012acfcea64b95b5d1711f /framework/src/sinkfabric.cpp | |
parent | 2dc4d380f8c0cc90aa0dec67a826703c3ceb34af (diff) | |
download | kube-331f75d4da056ddb235be45a3784d2c19e545211.tar.gz kube-331f75d4da056ddb235be45a3784d2c19e545211.zip |
Improvements of the log view
Summary:
- Add a test view for the log view
- Allow passing the `entities` part of Sink messages
- That allowed getting information about which mail could not be sent in sink transmission errors
Reviewers: cmollekopf
Reviewed By: cmollekopf
Differential Revision: https://phabricator.kde.org/D10861
Diffstat (limited to 'framework/src/sinkfabric.cpp')
-rw-r--r-- | framework/src/sinkfabric.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index 7d780ce3..8492f272 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -152,6 +152,13 @@ public: | |||
152 | QVariantMap message; | 152 | QVariantMap message; |
153 | if (notification.type == Sink::Notification::Warning) { | 153 | if (notification.type == Sink::Notification::Warning) { |
154 | message["type"] = "warning"; | 154 | message["type"] = "warning"; |
155 | |||
156 | QVariantList entities; | ||
157 | for(const auto &entity : notification.entities) { | ||
158 | entities << entity; | ||
159 | } | ||
160 | message["entities"] = entities; | ||
161 | |||
155 | message["resource"] = QString{notification.resource}; | 162 | message["resource"] = QString{notification.resource}; |
156 | if (notification.code == Sink::ApplicationDomain::TransmissionError) { | 163 | if (notification.code == Sink::ApplicationDomain::TransmissionError) { |
157 | message["message"] = QObject::tr("Failed to send message."); | 164 | message["message"] = QObject::tr("Failed to send message."); |