From a9629cdf86a3f6fe858126737f211585e306efc0 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Mon, 17 Jul 2017 20:17:29 +0300 Subject: [PATCH] Declare properties and methods of reachability class --- .../OpenVPNReachability+Internal.h | 18 ++++++++++++++++ OpenVPN Adapter/OpenVPNReachability.h | 21 +++++++++++++++++++ OpenVPN Adapter/OpenVPNReachability.mm | 21 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 OpenVPN Adapter/OpenVPNReachability+Internal.h create mode 100644 OpenVPN Adapter/OpenVPNReachability.h create mode 100644 OpenVPN Adapter/OpenVPNReachability.mm diff --git a/OpenVPN Adapter/OpenVPNReachability+Internal.h b/OpenVPN Adapter/OpenVPNReachability+Internal.h new file mode 100644 index 0000000..c711428 --- /dev/null +++ b/OpenVPN Adapter/OpenVPNReachability+Internal.h @@ -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 diff --git a/OpenVPN Adapter/OpenVPNReachability.h b/OpenVPN Adapter/OpenVPNReachability.h new file mode 100644 index 0000000..9402107 --- /dev/null +++ b/OpenVPN Adapter/OpenVPNReachability.h @@ -0,0 +1,21 @@ +// +// OpenVPNReachability.h +// OpenVPN Adapter +// +// Created by Sergey Abramchuk on 17.07.17. +// +// + +#import +#import "OpenVPNReachabilityStatus.h" + +@interface OpenVPNReachability : NSObject + +@property (readonly, nonatomic) OpenVPNReachabilityStatus reachabilityStatus; + +- (nonnull instancetype)initWatchingWWAN:(BOOL)watchWWAN watchingWiFi:(BOOL)watchWiFi; + +- (void)startTracking; +- (void)stopTracking; + +@end diff --git a/OpenVPN Adapter/OpenVPNReachability.mm b/OpenVPN Adapter/OpenVPNReachability.mm new file mode 100644 index 0000000..750da00 --- /dev/null +++ b/OpenVPN Adapter/OpenVPNReachability.mm @@ -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