diff options
Diffstat (limited to 'examples/mailtransportresource/mailtransport.h')
-rw-r--r-- | examples/mailtransportresource/mailtransport.h | 7 |
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 | }; |
40 | Q_DECLARE_OPERATORS_FOR_FLAGS(MailTransport::Options) | 45 | Q_DECLARE_OPERATORS_FOR_FLAGS(MailTransport::Options) |