-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeaders.h
106 lines (91 loc) · 3.64 KB
/
Headers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Copyright (c) 2021 udevs
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 3.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import "common.h"
@interface NRLink : NSObject
@property(readonly, nonatomic) unsigned long long identifier;
@property(nonatomic) BOOL isPrimary;
@property(readonly, nonatomic) unsigned char type;
@property(readonly, nonatomic) unsigned char state;
@end
@interface NRLinkWiFi : NRLink
- (void)setIsPrimary:(BOOL)arg1;
- (BOOL)resume;
- (BOOL)suspend;
@end
@interface NRLinkBluetooth : NRLink
- (BOOL)resume;
- (BOOL)suspend;
@end
@interface NRAnalytics : NSObject
@end
@interface NRAnalyticsPreferWiFi : NRAnalytics
@property(nonatomic) unsigned long long linkTransitionsWhileRequestActive;
@property(nonatomic) unsigned long long preferWiFiRequestSuccessful;
@property(nonatomic) unsigned long long preferWiFiRequestTimedOut;
@property(nonatomic) unsigned long long preferWiFiRequestEnd;
@property(nonatomic) unsigned long long preferWiFiRequestStart;
@end
@interface NRDDeviceConductor : NSObject
@property(retain, nonatomic) NSObject<OS_dispatch_queue> *queue;
@property(nonatomic) BOOL preferWiFiRequest;
@property(nonatomic) BOOL isEnabled;
@property(nonatomic) BOOL disablePreferWiFi;
@property(retain, nonatomic) NRLink *primaryLink;
@property(retain, nonatomic) NSMutableSet <NRLink *>*availableLinks;
@property(nonatomic) BOOL bringUpWiFiImmediately;
@property(retain, nonatomic) NRAnalyticsPreferWiFi *preferWiFiAnalytics;
@property(nonatomic) BOOL hasPhoneCallRelayRequest;
- (void)setPreferWiFiAllowedForTesting:(BOOL)arg1;
- (void)addSuspendBluetoothRequestWhenWiFiAvailable;
- (void)updatePrimaryLink;
- (void)setIPTunnelPolicyForLink:(id)arg1;
- (void)forceWoWMode;
- (void)suspendLinkOfType:(unsigned char)arg1;
- (void)resumeLinkOfType:(unsigned char)arg1;
- (void)setBringUpWiFiImmediatelyInner:(BOOL)arg1 timeout:(unsigned short)arg2 addSuspendBTRequest:(BOOL)arg3;
- (BOOL)sendPreferWiFiRequest:(BOOL)arg1 immediately:(BOOL)arg2 removeIfFailed:(BOOL)arg3 preferLinkType:(unsigned char)arg4 isAck:(BOOL)arg5 completion:(id /*block*/)arg6;
- (void)linkIsAvailable:(id)arg1;
- (void)sendHelloWithPreferredLink:(id)arg1 forced:(BOOL)arg2;
- (id)copyLinkOfType:(unsigned char)arg1;
- (id)copyPrimaryLink;
@end
@interface NRLinkManager : NSObject
@property(retain, nonatomic) NSObject<OS_dispatch_queue> *queue;
@end
@interface NRLinkManagerWiFi : NRLinkManager
@property(nonatomic) BOOL isWiFiAvailable;
- (void)enableWiFi;
- (void)disableWiFi;
- (BOOL)preferWiFiRequestAvailable;
- (BOOL)preferWiFiRequestUnavailable;
@end
@interface NRLinkDirector : NSObject
@property(retain, nonatomic) NSObject<OS_dispatch_queue> *queue;
@property(retain, nonatomic) NRLinkManagerWiFi *wifiManager;
@property(retain, nonatomic) NSMutableDictionary *conductors;
+ (id)copySharedLinkDirector;
- (void)setPreferWiFiAllowedForTesting:(BOOL)arg1;
- (BOOL)preferWiFiRequestUnavailable;
- (BOOL)preferWiFiRequestAvailable;
@end
//NetworkRelay
/*
@interface NRPreferWiFi : NSObject
+(id)sharedInstance;
-(void)submitRequest:(BOOL)arg1 ;
@end
extern "C" void NRPreferWiFiSet(BOOL isPrefer);
extern "C" void NRPreferWiFiReset();
extern "C" BOOL NRPreferWiFiHasRequest();
*/