forked from NoisyFlake/NetworkManager
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCCNetworkManager.h
49 lines (33 loc) · 1.48 KB
/
CCNetworkManager.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
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <rootless.h>
#import <ControlCenterUIKit/CCUIToggleModule.h>
@interface CCNetworkManager : CCUIToggleModule
@end
static BOOL getBool(NSString *key);
static NSString* getValue(NSString *key);
static void writeSelectedNetwork();
static NSString *getNextEnabledNetwork();
static void sendSimpleAlert(NSString *title, NSString *content);
typedef void* CTServerConnectionRef;
extern CTServerConnectionRef _CTServerConnectionCreate(CFAllocatorRef, void *, void*);
extern void* _CTServerConnectionSetRATSelection(CTServerConnectionRef, CFStringRef, void*);
extern CFStringRef kCTRegistrationRATSelection0;
#define kGSM kCTRegistrationRATSelection0
extern CFStringRef kCTRegistrationRATSelection1;
#define kUMTS kCTRegistrationRATSelection1
extern CFStringRef kCTRegistrationRATSelection3;
#define kCDMA kCTRegistrationRATSelection3
extern CFStringRef kCTRegistrationRATSelection4;
#define kEVDO kCTRegistrationRATSelection4
extern CFStringRef kCTRegistrationRATSelection6;
#define kLTE kCTRegistrationRATSelection6
extern CFStringRef kCTRegistrationRATSelection7;
#define kAutomatic kCTRegistrationRATSelection7
extern CFStringRef kCTRegistrationRATSelection9;
#define kNRStandAlone kCTRegistrationRATSelection9
extern CFStringRef kCTRegistrationRATSelection10;
#define kNRNonStandAlone kCTRegistrationRATSelection10
extern CFStringRef kCTRegistrationRATSelection11;
#define kNR kCTRegistrationRATSelection11
static void callback() {};