summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-17 14:16:43 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-17 14:16:43 +0100
commiteecf234e4fc79320fc74f2e917b9e9777f0761af (patch)
tree4ec041d5d905dbc3d7be71570cab4bd2b61ff2a2 /examples
parentd40710eb005cde8c6962d6f5689bc63a4745b1c1 (diff)
downloadsink-eecf234e4fc79320fc74f2e917b9e9777f0761af.tar.gz
sink-eecf234e4fc79320fc74f2e917b9e9777f0761af.zip
Added notification code for mailtransport
Diffstat (limited to 'examples')
-rw-r--r--examples/mailtransportresource/mailtransportresource.cpp2
1 files changed, 2 insertions, 0 deletions
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:
85 Sink::Notification n; 85 Sink::Notification n;
86 n.type = Notification::Warning; 86 n.type = Notification::Warning;
87 n.message = "Failed to send message."; 87 n.message = "Failed to send message.";
88 n.code = Notification::TransmissionFailed;
88 emit notify(n); 89 emit notify(n);
89 return KAsync::error("Failed to send the message."); 90 return KAsync::error("Failed to send the message.");
90 } else { 91 } else {
@@ -92,6 +93,7 @@ public:
92 Sink::Notification n; 93 Sink::Notification n;
93 n.type = Notification::Info; 94 n.type = Notification::Info;
94 n.message = "Message successfully sent."; 95 n.message = "Message successfully sent.";
96 n.code = Notification::TransmissionSucceeded;
95 emit notify(n); 97 emit notify(n);
96 } 98 }
97 } 99 }