mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Declare properties and methods of reachability class
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user