diff options
author | 2016-04-06 09:45:42 +0400 | |
---|---|---|
committer | 2016-04-05 22:45:42 -0700 | |
commit | f6129b13dda6f5f927568600a4e7dbea03939731 (patch) | |
tree | 199fbee36eb258ad0447f30d8aae3756410710ba /src/async/smtp/MCSMTPOperation.cpp | |
parent | 36d342d911e0cf2cad6a008ecc9b5ce401c9029e (diff) |
Expose SMTP response and response code to Objective-C API
* Expose SMTP response and response code to Objective-C API
Diffstat (limited to 'src/async/smtp/MCSMTPOperation.cpp')
-rw-r--r-- | src/async/smtp/MCSMTPOperation.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/async/smtp/MCSMTPOperation.cpp b/src/async/smtp/MCSMTPOperation.cpp index 28e1e152..0b3c8ad8 100644 --- a/src/async/smtp/MCSMTPOperation.cpp +++ b/src/async/smtp/MCSMTPOperation.cpp @@ -10,6 +10,7 @@ #include <stdlib.h> +#include "MCSMTPSession.h" #include "MCSMTPAsyncSession.h" #include "MCSMTPOperationCallback.h" @@ -72,6 +73,16 @@ ErrorCode SMTPOperation::error() return mError; } +String * SMTPOperation::lastSMTPResponse() +{ + return session()->session()->lastSMTPResponse(); +} + +int SMTPOperation::lastSMTPResponseCode() +{ + return session()->session()->lastSMTPResponseCode(); +} + struct progressContext { unsigned int current; unsigned int maximum; |