diff options
Diffstat (limited to 'src/objc/smtp/MCOSMTPSendOperation.h')
-rw-r--r-- | src/objc/smtp/MCOSMTPSendOperation.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/objc/smtp/MCOSMTPSendOperation.h b/src/objc/smtp/MCOSMTPSendOperation.h index 2174df91..e8a0f6b5 100644 --- a/src/objc/smtp/MCOSMTPSendOperation.h +++ b/src/objc/smtp/MCOSMTPSendOperation.h @@ -18,11 +18,14 @@ typedef void (^MCOSMTPOperationProgressBlock)(unsigned int current, unsigned int @interface MCOSMTPSendOperation : MCOSMTPOperation -// This block will be called during the progression of the send of the message +// This block will be called during the progression while sending the message // when some bytes have been sent to the network. @property (nonatomic, copy) MCOSMTPOperationProgressBlock progress; -- (void)start:(void (^)(NSError *error))completionBlock; +// Starts the asynchronous operation. +// On success, the completion block will be called with nil as error. +// On failure, error will be set with MCOErrorDomain as domain and an error code available in MCOConstants.h. +- (void) start:(void (^)(NSError * error))completionBlock; @end |