mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Declare properties and methods of reachability class
This commit is contained in:
18
OpenVPN Adapter/OpenVPNReachability+Internal.h
Normal file
18
OpenVPN Adapter/OpenVPNReachability+Internal.h
Normal 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
|
||||
21
OpenVPN Adapter/OpenVPNReachability.h
Normal file
21
OpenVPN Adapter/OpenVPNReachability.h
Normal 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
|
||||
21
OpenVPN Adapter/OpenVPNReachability.mm
Normal file
21
OpenVPN Adapter/OpenVPNReachability.mm
Normal 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
|
||||
Reference in New Issue
Block a user