-
Notifications
You must be signed in to change notification settings - Fork 2
/
LowPowerBanner.h
executable file
·112 lines (102 loc) · 4.43 KB
/
LowPowerBanner.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
107
108
109
110
111
112
@interface BBBulletin : NSObject <NSCopying, NSCoding>
@property(copy, nonatomic) NSSet *alertSuppressionAppIDs_deprecated; // @synthesize alertSuppressionAppIDs_deprecated;
@property(nonatomic) unsigned int realertCount_deprecated; // @synthesize realertCount_deprecated;
@property(retain, nonatomic) NSDate *lastInterruptDate; // @synthesize lastInterruptDate=_lastInterruptDate;
@property(copy, nonatomic) NSString *bulletinID; // @synthesize bulletinID=_bulletinID;
@property(retain, nonatomic) NSDate *expirationDate; // @synthesize expirationDate=_expirationDate;
@property(retain, nonatomic) NSDictionary *context; // @synthesize context=_context;
@property(nonatomic) BOOL expiresOnPublisherDeath; // @synthesize expiresOnPublisherDeath=_expiresOnPublisherDeath;
@property(copy, nonatomic) NSArray *buttons; // @synthesize buttons=_buttons;
@property(retain, nonatomic) NSMutableDictionary *actions; // @synthesize actions=_actions;
@property(copy, nonatomic) NSString *unlockActionLabelOverride; // @synthesize unlockActionLabelOverride=_unlockActionLabelOverride;
@property(nonatomic) BOOL clearable; // @synthesize clearable=_clearable;
@property(nonatomic) int accessoryStyle; // @synthesize accessoryStyle=_accessoryStyle;
@property(retain, nonatomic) NSTimeZone *timeZone; // @synthesize timeZone=_timeZone;
@property(nonatomic) BOOL dateIsAllDay; // @synthesize dateIsAllDay=_dateIsAllDay;
@property(nonatomic) int dateFormatStyle; // @synthesize dateFormatStyle=_dateFormatStyle;
@property(retain, nonatomic) NSDate *recencyDate; // @synthesize recencyDate=_recencyDate;
@property(retain, nonatomic) NSDate *endDate; // @synthesize endDate=_endDate;
@property(retain, nonatomic) NSDate *date; // @synthesize date=_date;
@property(nonatomic) int sectionSubtype; // @synthesize sectionSubtype=_sectionSubtype;
@property(nonatomic) int addressBookRecordID; // @synthesize addressBookRecordID=_addressBookRecordID;
@property(copy, nonatomic) NSString *publisherBulletinID; // @synthesize publisherBulletinID=_publisherBulletinID;
@property(copy, nonatomic) NSString *recordID; // @synthesize recordID=_publisherRecordID;
@property(copy, nonatomic) NSString *sectionID; // @synthesize sectionID=_sectionID;
@property(readonly, nonatomic) int primaryAttachmentType;
@property(copy, nonatomic) NSString *section;
@property(copy, nonatomic) NSString *message;
@property(copy, nonatomic) NSString *subtitle;
@property(copy, nonatomic) NSString *title;
@end
@interface SBBulletinBannerController : NSObject
+ (id)sharedInstance;
- (id)newBannerViewForItem:(id)item;
- (void)_presentBannerForItem:(id)item;
- (void)_presentBannerView:(id)view;
@end
@interface SBBulletinBannerItem : NSObject
+ (id)itemWithBulletin:(id)bulletin;
+ (id)itemWithBulletin:(id)bulletin andObserver:(id)observer;
@end
typedef struct {
BOOL itemIsEnabled[23];
BOOL timeString[64];
int gsmSignalStrengthRaw;
int gsmSignalStrengthBars;
BOOL serviceString[100];
BOOL serviceCrossfadeString[100];
BOOL serviceImages[3][100];
BOOL operatorDirectory[1024];
unsigned serviceContentType;
int wifiSignalStrengthRaw;
int wifiSignalStrengthBars;
unsigned dataNetworkType;
int batteryCapacity;
unsigned batteryState;
BOOL notChargingString[150];
int bluetoothBatteryCapacity;
int thermalColor;
unsigned thermalSunlightMode : 1;
unsigned slowActivity : 1;
unsigned syncActivity : 1;
BOOL activityDisplayId[256];
unsigned bluetoothConnected : 1;
unsigned displayRawGSMSignal : 1;
unsigned displayRawWifiSignal : 1;
unsigned locationIconType : 1;
} _data;
@interface SBLowPowerAlertItem : NSObject
@end
@interface BBBulletinRequest : BBBulletin
@property(nonatomic) BOOL tentative;
@property(nonatomic) BOOL showsUnreadIndicator;
@property(nonatomic) unsigned int realertCount;
@property(nonatomic) int primaryAttachmentType; // @dynamic primaryAttachmentType;
@end
@interface SBAwayController : NSObject
+ (id)sharedAwayController;
- (BOOL)isLocked;
@end
@interface SBUIController : NSObject
+ (id)sharedInstance;
- (BOOL)isBatteryCharging;
- (BOOL)isOnAC;
- (void)ACPowerChanged;
- (int)batteryCapacityAsPercentage;
- (float)batteryCapacity;
- (int)displayBatteryCapacityAsPercentage;
- (int)curvedBatteryCapacityAsPercentage;
@end
@interface SBBannerController : NSObject
+ (id)sharedInstance;
- (void)_presentBannerView:(id)view;
@end
typedef struct {
int batteryCapacity;
} XXStruct_dUflDB;
@interface SBStatusBarDataManager : NSObject {
XXStruct_dUflDB _data;
}
+ (id)sharedDataManager;
-(const XXStruct_dUflDB*)currentData;
@end