Declare properties and methods of reachability class

This commit is contained in:
Sergey Abramchuk
2017-07-17 20:17:29 +03:00
parent a773a7f8a0
commit a9629cdf86
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
//
// OpenVPNReachability+Internal.h
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 17.07.17.
//
//
#import "OpenVPNReachabilityTracker.h"
#import "OpenVPNReachability.h"
@interface OpenVPNReachability (Internal)
@property OpenVPNReachabilityTracker *reachabilityTracker;
- (void)updateReachabilityStatus:(OpenVPNReachabilityStatus)status;
@end

View File

@@ -0,0 +1,21 @@
//
// OpenVPNReachability.h
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 17.07.17.
//
//
#import <Foundation/Foundation.h>
#import "OpenVPNReachabilityStatus.h"
@interface OpenVPNReachability : NSObject
@property (readonly, nonatomic) OpenVPNReachabilityStatus reachabilityStatus;
- (nonnull instancetype)initWatchingWWAN:(BOOL)watchWWAN watchingWiFi:(BOOL)watchWiFi;
- (void)startTracking;
- (void)stopTracking;
@end

View File

@@ -0,0 +1,21 @@
//
// OpenVPNReachability.m
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 17.07.17.
//
//
#import "OpenVPNReachability.h"
#import "OpenVPNReachability+Internal.h"
@implementation OpenVPNReachability (Internal)
@end
@implementation OpenVPNReachability
@end