Revision: 29024
          http://sourceforge.net/p/bibdesk/svn/29024
Author:   hofman
Date:     2025-02-18 23:29:15 +0000 (Tue, 18 Feb 2025)
Log Message:
-----------
add nullability to soap binding classes

Modified Paths:
--------------
    trunk/bibdesk/BDSKSoapBinding.h

Modified: trunk/bibdesk/BDSKSoapBinding.h
===================================================================
--- trunk/bibdesk/BDSKSoapBinding.h     2025-02-18 23:14:48 UTC (rev 29023)
+++ trunk/bibdesk/BDSKSoapBinding.h     2025-02-18 23:29:15 UTC (rev 29024)
@@ -1,13 +1,15 @@
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKSoapElement;
 @class BDSKSoapBindingOperation;
 @class BDSKDownload;
 
 @protocol BDSKSoapBindingOperationDelegate <NSObject>
-- (void)soapOperationCompletedWithResponse:(NSArray *)response error:(NSError 
*)error;
+- (void)soapOperationCompletedWithResponse:(nullable NSArray *)response 
error:(nullable NSError *)error;
 @optional
-- (NSWindow *)soapOperationWindowForAuthenticationSheet;
+- (nullable NSWindow *)soapOperationWindowForAuthenticationSheet;
 @end
 
 @interface BDSKSoapBinding : NSObject {
@@ -19,18 +21,18 @@
        NSString *authUsername;
        NSString *authPassword;
 }
-@property (class, nonatomic, readonly) NSString *address;
-@property (class, nonatomic, readonly) NSString *namespaceURI;
+@property (class, nonatomic, nullable, readonly) NSString *address;
+@property (class, nonatomic, nullable, readonly) NSString *namespaceURI;
 @property (class, nonatomic, readonly) BDSKSoapBinding *soapBinding;
-@property (nonatomic, copy) NSURL *address;
-@property (nonatomic, copy) NSString *namespaceURI;
+@property (nonatomic, nullable, copy) NSURL *address;
+@property (nonatomic, nullable, copy) NSString *namespaceURI;
 @property (nonatomic) BOOL logXMLInOut;
 @property (nonatomic) NSTimeInterval defaultTimeout;
-@property (nonatomic, strong) NSMutableArray *cookies;
-@property (nonatomic, strong) NSString *authUsername;
-@property (nonatomic, strong) NSString *authPassword;
+@property (nonatomic, nullable, strong) NSMutableArray *cookies;
+@property (nonatomic, nullable, strong) NSString *authUsername;
+@property (nonatomic, nullable, strong) NSString *authPassword;
 - (instancetype)initWithAddress:(NSString *)anAddress namespaceURI:(NSString 
*)aNamespaceURI;
-- (NSString *)serializedEnvelopeUsingHeaderElements:(NSDictionary 
*)headerElements bodyElements:(NSDictionary *)bodyElements;
+- (NSString *)serializedEnvelopeUsingHeaderElements:(nullable NSDictionary 
*)headerElements bodyElements:(nullable NSDictionary *)bodyElements;
 - (NSURLRequest *)requestUsingBody:(NSString *)body soapAction:(NSString 
*)soapAction;
 - (void)addCookie:(NSHTTPCookie *)toAdd;
 @end
@@ -49,10 +51,10 @@
 @property (nonatomic, strong) NSDictionary *bodyElements;
 @property (nonatomic, strong) NSDictionary *responseClasses;
 @property (nonatomic, strong) NSString *soapAction;
-@property (nonatomic, weak) id<BDSKSoapBindingOperationDelegate> delegate;
-@property (nonatomic, strong) BDSKDownload *download;
-- (instancetype)initWithBinding:(BDSKSoapBinding *)aBinding 
delegate:(id<BDSKSoapBindingOperationDelegate>)aDelegate soapAction:(NSString 
*)aSoapAction bodyElements:(NSDictionary *)aBodyElements 
responseClasses:(NSDictionary *)aResponseClasses;
-- (instancetype)initWithParameters:(BDSKSoapElement *)parameters 
delegate:(id<BDSKSoapBindingOperationDelegate>)aDelegate;
+@property (nonatomic, nullable, weak) id<BDSKSoapBindingOperationDelegate> 
delegate;
+@property (nonatomic, nullable, strong) BDSKDownload *download;
+- (instancetype)initWithBinding:(BDSKSoapBinding *)aBinding delegate:(nullable 
id<BDSKSoapBindingOperationDelegate>)aDelegate soapAction:(NSString 
*)aSoapAction bodyElements:(NSDictionary *)aBodyElements 
responseClasses:(NSDictionary *)aResponseClasses;
+- (instancetype)initWithParameters:(BDSKSoapElement *)parameters 
delegate:(nullable id<BDSKSoapBindingOperationDelegate>)aDelegate;
 - (void)start;
 - (void)waitUntilExit;
 - (void)cancel;
@@ -59,13 +61,13 @@
 @end
 
 @protocol BDSKSoapElement <NSObject>
-- (NSXMLElement *)XMLNodeWithName:(NSString *)elName prefix:(NSString 
*)elNSPrefix;
+- (NSXMLElement *)XMLNodeWithName:(NSString *)elName prefix:(nullable NSString 
*)elNSPrefix;
 + (instancetype)deserializeNode:(NSXMLElement *)node;
 @end
 
 @interface BDSKSoapElement : NSObject <BDSKSoapElement> {
 }
-- (void)addElementsToNode:(NSXMLElement *)node prefix:(NSString *)elNSPrefix;
+- (void)addElementsToNode:(NSXMLElement *)node prefix:(nullable NSString 
*)elNSPrefix;
 - (void)deserializeChildNode:(NSXMLElement *)node;
 @end
 
@@ -74,9 +76,9 @@
        NSString *faultstring;
        NSString *faultactor;
 }
-@property (nonatomic, strong) NSString *faultcode;
-@property (nonatomic, strong) NSString *faultstring;
-@property (nonatomic, strong) NSString *faultactor;
+@property (nonatomic, nullable, strong) NSString *faultcode;
+@property (nonatomic, nullable, strong) NSString *faultstring;
+@property (nonatomic, nullable, strong) NSString *faultactor;
 @end
 
 @interface NSString (BDSKSoapElement) <BDSKSoapElement>
@@ -84,3 +86,5 @@
 
 @interface NSNumber (BDSKSoapElement) <BDSKSoapElement>
 @end
+
+NS_ASSUME_NONNULL_END

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to