summaryrefslogtreecommitdiffstats
path: root/examples/mailtransportresource/mailtransport.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-25 14:43:07 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-25 14:43:07 +0100
commit31dbe72afb5e04cd86d4f107e7257fb60aaa087b (patch)
tree9df6ad125f80d74fb720a1994415c0c279c5f902 /examples/mailtransportresource/mailtransport.h
parent102bb38ed89da2295a01d707db954e47a6cb8d7d (diff)
downloadsink-31dbe72afb5e04cd86d4f107e7257fb60aaa087b.tar.gz
sink-31dbe72afb5e04cd86d4f107e7257fb60aaa087b.zip
Do the logging in the resource code.
Diffstat (limited to 'examples/mailtransportresource/mailtransport.h')
-rw-r--r--examples/mailtransportresource/mailtransport.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/mailtransportresource/mailtransport.h b/examples/mailtransportresource/mailtransport.h
index 662fdc9..0fa5a66 100644
--- a/examples/mailtransportresource/mailtransport.h
+++ b/examples/mailtransportresource/mailtransport.h
@@ -31,10 +31,15 @@ namespace MailTransport
31 }; 31 };
32 Q_DECLARE_FLAGS(Options, Option); 32 Q_DECLARE_FLAGS(Options, Option);
33 33
34 struct SendResult {
35 bool error;
36 QString errorMessage;
37 };
38
34 /* 39 /*
35 * For ssl use "smtps://mainserver.example.net 40 * For ssl use "smtps://mainserver.example.net
36 * @param cacert: "/path/to/certificate.pem"; 41 * @param cacert: "/path/to/certificate.pem";
37 */ 42 */
38 bool sendMessage(const KMime::Message::Ptr &message, const QByteArray &server, const QByteArray &username, const QByteArray &password, const QByteArray &cacert, Options flags); 43 SendResult sendMessage(const KMime::Message::Ptr &message, const QByteArray &server, const QByteArray &username, const QByteArray &password, const QByteArray &cacert, Options flags);
39}; 44};
40Q_DECLARE_OPERATORS_FOR_FLAGS(MailTransport::Options) 45Q_DECLARE_OPERATORS_FOR_FLAGS(MailTransport::Options)