-
Notifications
You must be signed in to change notification settings - Fork 16
/
Headers.h
155 lines (130 loc) · 4.32 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/**
* Name: LastApp
* Type: iPhone OS SpringBoard extension (MobileSubstrate-based)
* Desc: Quickly switch to the previously-active application
*
* Author: Lance Fetters (aka. ashikase)
* License: New BSD (See LICENSE file for details)
*/
#ifndef LASTAPP_HEADERS_H_
#define LASTAPP_HEADERS_H_
@interface SBDisplay : NSObject
- (void)setActivationSetting:(unsigned)setting flag:(BOOL)flag;
- (void)setDeactivationSetting:(unsigned)setting flag:(BOOL)flag;
- (void)setDisplaySetting:(unsigned)setting flag:(BOOL)flag;
@end
@interface SBAlert : SBDisplay @end
@interface SBApplication : SBDisplay @end
@interface SBApplication (Firmware_LT_80)
- (id)displayIdentifier;
@end
@interface SBApplication (Firmware_GTE_80)
- (id)bundleIdentifier;
@end
@interface SBApplicationController : NSObject
+ (id)sharedInstance;
@end
@interface SBApplicationController (Firmware_LT_80)
- (id)applicationWithDisplayIdentifier:(id)displayIdentifier;
@end
@interface SBApplicationController (Firmware_GTE_80)
- (id)applicationWithBundleIdentifier:(id)bundleIdentifier;
@end
@interface SBAwayController : SBAlert
+ (id)sharedAwayController;
- (BOOL)isLocked;
- (BOOL)isMakingEmergencyCall;
@end
@interface SBDisplayStack : NSObject
- (id)popDisplay:(id)display;
- (void)pushDisplay:(id)display;
- (id)topApplication;
@end
@interface SBIconController : NSObject
+ (id)sharedInstance;
- (BOOL)isEditing;
@end
@interface SBPowerDownController : SBAlert
+ (id)sharedInstance;
- (BOOL)isOrderedFront;
@end
@interface SpringBoard : UIApplication @end
@interface SpringBoard (Backgrounder)
// NOTE: This is needed to prevent a compiler warning
- (void)setBackgroundingEnabled:(BOOL)enabled forDisplayIdentifier:(NSString *)identifier;
@end
@interface SpringBoard (LastApp)
- (void)lastApp_switchToLastApp;
@end
// iOS 6.0+
@interface BKSWorkspace : NSObject
- (id)topApplication;
@end
@interface SBAlertManager : NSObject @end
@interface SBWorkspaceTransaction : NSObject @end
@interface SBToAppWorkspaceTransaction : SBWorkspaceTransaction @end
@interface SBAppToAppWorkspaceTransaction : SBToAppWorkspaceTransaction
@end
@interface SBAppToAppWorkspaceTransaction (Firmware_GTE_60_LT_70)
- (id)initWithWorkspace:(id)workspace alertManager:(id)manager from:(id)from to:(id)to;
@end
@interface SBAppToAppWorkspaceTransaction (Firmware_GTE_70_LT_80)
- (id)initWithWorkspace:(id)workspace alertManager:(id)manager from:(id)from to:(id)to activationHandler:(id)handler;
@end
@interface SBAppToAppWorkspaceTransaction (Firmware_GTE_80)
- (id)initWithAlertManager:(id)manager from:(id)from to:(id)to withResult:(id)handler;
@end
@interface SBAppToAppWorkspaceTransaction (Firmware_GTE_90)
- (id)initWithTransitionRequest:(id)arg1;
@end
@interface SBWorkspace : NSObject
@property(readonly, assign, nonatomic) SBAlertManager *alertManager;
@property(readonly, assign, nonatomic) BKSWorkspace *bksWorkspace;
@property(retain, nonatomic) SBWorkspaceTransaction *currentTransaction;
- (id)_applicationForBundleIdentifier:(id)bundleIdentifier frontmost:(BOOL)frontmost;
@end
@interface SBWorkspaceEvent : NSObject
+ (id)eventWithLabel:(id)label handler:(id)handler;
@end
@interface SBWorkspaceEventQueue : NSObject
+ (id)sharedInstance;
- (void)executeOrAppendEvent:(id)event;
@end
// iOS 7.0+
@interface SBTelephonyManager : NSObject
+ (id)sharedTelephonyManager;
- (BOOL)isEmergencyCallActive;
@end
@interface SBUserAgent : NSObject
+ (id)sharedUserAgent;
- (BOOL)deviceIsPasscodeLocked;
@end
// iOS 8.0+
@interface BSEventQueueEvent : NSObject
+ (id)eventWithName:(id)name handler:(id)handler;
@end
@interface FBWorkspaceEvent : BSEventQueueEvent
@end
@interface FBWorkspaceEventQueue : NSObject
+ (id)sharedInstance;
- (void)executeOrAppendEvent:(id)event;
@end
@interface SpringBoard (Firmware_GTE_80)
@property(retain, nonatomic) SBPowerDownController *powerDownController;
- (id)_accessibilityFrontMostApplication;
@end
// iOS 9.0+
@interface SBMainWorkspace : SBWorkspace
// CALLED
+ (id)sharedInstance;
- (id)createRequestForApplicationActivation:(id)arg1 options:(unsigned int)arg2;
- (BOOL)executeTransitionRequest:(id)arg1;
@end
@interface SBWorkspaceEntity : NSObject @end
@interface SBWorkspaceApplication : SBWorkspaceEntity
// CALLED
- (id)initWithApplication:(id)arg1;
@end
@interface SBWorkspaceTransitionRequest : NSObject @end
#endif // LASTAPP_HEADERS_H_
/* vim: set ft=objc ff=unix sw=4 ts=4 expandtab tw=80: */