From eecf234e4fc79320fc74f2e917b9e9777f0761af Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 17 Mar 2017 14:16:43 +0100 Subject: Added notification code for mailtransport --- examples/mailtransportresource/mailtransportresource.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/mailtransportresource/mailtransportresource.cpp b/examples/mailtransportresource/mailtransportresource.cpp index cd7f4a7..a6460f1 100644 --- a/examples/mailtransportresource/mailtransportresource.cpp +++ b/examples/mailtransportresource/mailtransportresource.cpp @@ -85,6 +85,7 @@ public: Sink::Notification n; n.type = Notification::Warning; n.message = "Failed to send message."; + n.code = Notification::TransmissionFailed; emit notify(n); return KAsync::error("Failed to send the message."); } else { @@ -92,6 +93,7 @@ public: Sink::Notification n; n.type = Notification::Info; n.message = "Message successfully sent."; + n.code = Notification::TransmissionSucceeded; emit notify(n); } } -- cgit v1.2.3