-
Notifications
You must be signed in to change notification settings - Fork 126
/
CTSIMSupport.h
55 lines (42 loc) · 1.76 KB
/
CTSIMSupport.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
/*
* CoreTelephony SIM support.
*
* Copyright (c) 2013-2014 Cykey (David Murray)
* All rights reserved.
*/
#ifndef CTSIMSUPPORT_H_
#define CTSIMSUPPORT_H_
#include <CoreFoundation/CoreFoundation.h>
#if __cplusplus
extern "C" {
#endif
#pragma mark - Definitions
typedef CFStringRef CTSIMStatus;
extern CTSIMStatus kCTSIMSupportSIMStatusBlacklisted;
extern CTSIMStatus kCTSIMSupportSIMStatusChangeNotification;
extern CTSIMStatus kCTSIMSupportSIMStatusCorporateLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusFixedDialingLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusMemoryFailure;
extern CTSIMStatus kCTSIMSupportSIMStatusNetworkLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusNotInserted;
extern CTSIMStatus kCTSIMSupportSIMStatusNotReady;
extern CTSIMStatus kCTSIMSupportSIMStatusOperatorLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusOperatorSubsetLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusPINLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusPUKLocked;
extern CTSIMStatus kCTSIMSupportSIMStatusReady;
extern CTSIMStatus kCTSIMSupportSIMStatusServiceProviderLocked;
/* For use with the CoreTelephony notification system. */
extern CFStringRef kCTSIMSupportSIMStatusChangeNotification;
#pragma mark - API
CTSIMStatus CTSIMSupportGetSIMStatus();
CFStringRef CTSIMSupportCopyMobileSubscriberIdentity(CFAllocatorRef allocator);
CFStringRef CTSIMSupportCopyMobileSubscriberCountryCode(CFAllocatorRef allocator);
CFStringRef CTSIMSupportCopyMobileSubscriberNetworkCode(CFAllocatorRef allocator);
int CTSIMSupportGetRemainingPINAttempts();
int CTSIMSupportGetRemainingPUKAttempts();
void CTSIMSupportPINUnlock(CFStringRef code);
#if __cplusplus
}
#endif
#endif /* CTSIMSUPPORT_H_ */