diff options
author | Lucas Derraugh <lucasderraugh@gmail.com> | 2015-07-19 03:05:06 -0700 |
---|---|---|
committer | Lucas Derraugh <lucasderraugh@gmail.com> | 2015-07-19 03:05:06 -0700 |
commit | e9389f70b482c33d09d904932d3aa6e8f4bb67ba (patch) | |
tree | bdcda09a41c60848feb8a11dbe96237d41f38050 /src/objc/smtp | |
parent | b93062e0e918f7924fa48724fdbf53d91aa348bb (diff) |
Add nullability annotations
Diffstat (limited to 'src/objc/smtp')
-rw-r--r-- | src/objc/smtp/MCOSMTPLoginOperation.h | 4 | ||||
-rw-r--r-- | src/objc/smtp/MCOSMTPNoopOperation.h | 2 | ||||
-rw-r--r-- | src/objc/smtp/MCOSMTPOperation.h | 4 | ||||
-rw-r--r-- | src/objc/smtp/MCOSMTPSendOperation.h | 4 | ||||
-rw-r--r-- | src/objc/smtp/MCOSMTPSession.h | 10 |
5 files changed, 15 insertions, 9 deletions
diff --git a/src/objc/smtp/MCOSMTPLoginOperation.h b/src/objc/smtp/MCOSMTPLoginOperation.h index e7ffc641..39715cc7 100644 --- a/src/objc/smtp/MCOSMTPLoginOperation.h +++ b/src/objc/smtp/MCOSMTPLoginOperation.h @@ -13,6 +13,7 @@ #import <MailCore/MCOSMTPOperation.h> /** This is an asynchronous operation that will perform a noop operation through SMTP. */ +NS_ASSUME_NONNULL_BEGIN @interface MCOSMTPLoginOperation : MCOSMTPOperation /* @@ -25,8 +26,9 @@ - On failure, `error` will be set with `MCOErrorDomain` as domain and an error code available in MCOConstants.h, */ -- (void) start:(void (^)(NSError * error))completionBlock; +- (void) start:(void (^)(NSError * __nullable error))completionBlock; @end +NS_ASSUME_NONNULL_END #endif diff --git a/src/objc/smtp/MCOSMTPNoopOperation.h b/src/objc/smtp/MCOSMTPNoopOperation.h index 0b22e5d9..e67698b7 100644 --- a/src/objc/smtp/MCOSMTPNoopOperation.h +++ b/src/objc/smtp/MCOSMTPNoopOperation.h @@ -25,7 +25,7 @@ - On failure, `error` will be set with `MCOErrorDomain` as domain and an error code available in MCOConstants.h, */ -- (void) start:(void (^)(NSError * error))completionBlock; +- (void) start:(void (^)(NSError * __nullable error))completionBlock; @end diff --git a/src/objc/smtp/MCOSMTPOperation.h b/src/objc/smtp/MCOSMTPOperation.h index 7b92148f..111f386b 100644 --- a/src/objc/smtp/MCOSMTPOperation.h +++ b/src/objc/smtp/MCOSMTPOperation.h @@ -14,6 +14,7 @@ /** This is an asynchronous SMTP operation, used for sending messages. */ +NS_ASSUME_NONNULL_BEGIN @interface MCOSMTPOperation : MCOOperation /** @@ -26,8 +27,9 @@ - On failure, `error` will be set with `MCOErrorDomain` as domain and an error code available in MCOConstants.h, */ -- (void) start:(void (^)(NSError * error))completionBlock; +- (void) start:(void (^)(NSError * __nullable error))completionBlock; @end +NS_ASSUME_NONNULL_END #endif diff --git a/src/objc/smtp/MCOSMTPSendOperation.h b/src/objc/smtp/MCOSMTPSendOperation.h index 82b238c2..9474c0ef 100644 --- a/src/objc/smtp/MCOSMTPSendOperation.h +++ b/src/objc/smtp/MCOSMTPSendOperation.h @@ -16,6 +16,7 @@ typedef void (^MCOSMTPOperationProgressBlock)(unsigned int current, unsigned int maximum); +NS_ASSUME_NONNULL_BEGIN @interface MCOSMTPSendOperation : MCOSMTPOperation /** This block will be called as the message is sent */ @@ -31,8 +32,9 @@ typedef void (^MCOSMTPOperationProgressBlock)(unsigned int current, unsigned int - On failure, `error` will be set with `MCOErrorDomain` as domain and an error code available in MCOConstants.h, */ -- (void) start:(void (^)(NSError * error))completionBlock; +- (void) start:(void (^)(NSError * __nullable error))completionBlock; @end +NS_ASSUME_NONNULL_END #endif diff --git a/src/objc/smtp/MCOSMTPSession.h b/src/objc/smtp/MCOSMTPSession.h index 64389c14..31055335 100644 --- a/src/objc/smtp/MCOSMTPSession.h +++ b/src/objc/smtp/MCOSMTPSession.h @@ -116,7 +116,7 @@ Returns an operation that will perform a login. MCOSMTPOperation * op = [session loginOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -130,7 +130,7 @@ Generate RFC 822 data using MCOMessageBuilder MCOSMTPOperation * op = [session sendOperationWithData:rfc822Data]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -146,7 +146,7 @@ MCOSMTPOperation * op = [session sendOperationWithData:rfc822Data from:[MCOAddress addressWithMailbox:@"hoa@etpan.org"] recipients:[NSArray arrayWithObject:[MCOAddress addressWithMailbox:@"laura@etpan.org"]]]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -158,7 +158,7 @@ Returns an operation that will check whether the SMTP account is valid. MCOSMTPOperation * op = [session checkAccountOperationWithFrom:[MCOAddress addressWithMailbox:@"hoa@etpan.org"]]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -168,7 +168,7 @@ Returns an operation that will perform a No-Op. MCOSMTPOperation * op = [session noopOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ |