From cd5ecf7b381ebc76196931e213c92664c3443be8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 20 Mar 2017 09:24:06 +0100 Subject: Make error codes part of the applicationdomain interface --- examples/mailtransportresource/mailtransportresource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/mailtransportresource') 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: } if (!MailTransport::sendMessage(msg, settings.server.toUtf8(), settings.username.toUtf8(), settings.password.toUtf8(), settings.cacert.toUtf8(), options)) { SinkWarning() << "Failed to send message: " << mail; - emitNotification(Notification::Warning, Notification::TransmissionFailed, "Failed to send message."); + emitNotification(Notification::Warning, ApplicationDomain::TransmissionError, "Failed to send message."); return KAsync::error("Failed to send the message."); } else { - emitNotification(Notification::Info, Notification::TransmissionSucceeded, "Message successfully sent."); + emitNotification(Notification::Info, ApplicationDomain::TransmissionSuccess, "Message successfully sent."); } } syncStore().writeValue(mail.identifier(), "sent"); -- cgit v1.2.3