summaryrefslogtreecommitdiffstats
path: root/examples/mailtransportresource/mailtransportresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 09:24:06 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 09:24:06 +0100
commitcd5ecf7b381ebc76196931e213c92664c3443be8 (patch)
tree0f8beca5b6e7c62ff503c0b8fcfcd12bcc91a1be /examples/mailtransportresource/mailtransportresource.cpp
parent9e8d4bac334e727368ada48676a21d52030b97cc (diff)
downloadsink-cd5ecf7b381ebc76196931e213c92664c3443be8.tar.gz
sink-cd5ecf7b381ebc76196931e213c92664c3443be8.zip
Make error codes part of the applicationdomain interface
Diffstat (limited to 'examples/mailtransportresource/mailtransportresource.cpp')
-rw-r--r--examples/mailtransportresource/mailtransportresource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mailtransportresource/mailtransportresource.cpp b/examples/mailtransportresource/mailtransportresource.cpp
index 72fe59d..6beb4e8 100644
--- a/examples/mailtransportresource/mailtransportresource.cpp
+++ b/examples/mailtransportresource/mailtransportresource.cpp
@@ -81,10 +81,10 @@ public:
81 } 81 }
82 if (!MailTransport::sendMessage(msg, settings.server.toUtf8(), settings.username.toUtf8(), settings.password.toUtf8(), settings.cacert.toUtf8(), options)) { 82 if (!MailTransport::sendMessage(msg, settings.server.toUtf8(), settings.username.toUtf8(), settings.password.toUtf8(), settings.cacert.toUtf8(), options)) {
83 SinkWarning() << "Failed to send message: " << mail; 83 SinkWarning() << "Failed to send message: " << mail;
84 emitNotification(Notification::Warning, Notification::TransmissionFailed, "Failed to send message."); 84 emitNotification(Notification::Warning, ApplicationDomain::TransmissionError, "Failed to send message.");
85 return KAsync::error("Failed to send the message."); 85 return KAsync::error("Failed to send the message.");
86 } else { 86 } else {
87 emitNotification(Notification::Info, Notification::TransmissionSucceeded, "Message successfully sent."); 87 emitNotification(Notification::Info, ApplicationDomain::TransmissionSuccess, "Message successfully sent.");
88 } 88 }
89 } 89 }
90 syncStore().writeValue(mail.identifier(), "sent"); 90 syncStore().writeValue(mail.identifier(), "sent");