Skip to content

Commit

Permalink
make internal properties accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Vandriel committed Oct 26, 2014
1 parent d6bcfbc commit c16532a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Classes/NWHub.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@protocol NWHubDelegate <NSObject>
- (void)notification:(NWNotification *)notification didFailWithError:(NSError *)error;
@optional
- (void)notification:(NWNotification *)notification didFailWithResult:(NWError)result; // TODO: deprecated, remove from 0.6.0
- (void)notification:(NWNotification *)notification didFailWithResult:(NWError)result __deprecated; // TODO: deprecated, remove from 0.6.0
@end


Expand All @@ -25,6 +25,8 @@
@property (nonatomic, assign) NWNotificationType type;
@property (nonatomic, assign) NSTimeInterval feedbackSpan;

@property (nonatomic, assign) NSUInteger index;

- (instancetype)initWithDelegate:(id<NWHubDelegate>)delegate;
- (instancetype)initWithPusher:(NWPusher *)pusher delegate:(id<NWHubDelegate>)delegate;

Expand Down
1 change: 0 additions & 1 deletion Classes/NWHub.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


@implementation NWHub {
NSUInteger _index;
NSMutableDictionary *_notificationForIdentifier;
}

Expand Down
3 changes: 3 additions & 0 deletions Classes/NWPushFeedback.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
#import "NWType.h"
#import <Foundation/Foundation.h>

@class NWSSLConnection;

@interface NWPushFeedback : NSObject

@property (nonatomic, strong) NWSSLConnection *connection;

- (BOOL)connectWithIdentity:(NWIdentityRef)identity error:(NSError **)error;
- (BOOL)connectWithPKCS12Data:(NSData *)data password:(NSString *)password error:(NSError **)error;
- (void)disconnect;
Expand Down
4 changes: 1 addition & 3 deletions Classes/NWPushFeedback.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
static NSUInteger const NWPushPort = 2196;
static NSUInteger const NWTokenMaxSize = 32;

@implementation NWPushFeedback {
NWSSLConnection *_connection;
}
@implementation NWPushFeedback

#pragma mark - Connecting

Expand Down
3 changes: 2 additions & 1 deletion Classes/NWPusher.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

@interface NWPusher : NSObject

@property (nonatomic, readonly) NWSSLConnection *connection;
@property (nonatomic, strong) NWSSLConnection *connection;


- (BOOL)connectWithIdentity:(NWIdentityRef)identity error:(NSError **)error;
- (BOOL)connectWithPKCS12Data:(NSData *)data password:(NSString *)password error:(NSError **)error;
Expand Down
4 changes: 1 addition & 3 deletions Classes/NWPusher.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
static NSString * const NWPushHost = @"gateway.push.apple.com";
static NSUInteger const NWPushPort = 2195;

@implementation NWPusher {
NSUInteger _index;
}
@implementation NWPusher

#pragma mark - Connecting

Expand Down

0 comments on commit c16532a

Please sign in to comment.