diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mailtransportresource/mailtransportresource.cpp | 2 |
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 | } |