]> git.saurik.com Git - iphone-api.git/blob - UIKit/UIApplication.h
Commit the Preferences folder (for WinterBoard).
[iphone-api.git] / UIKit / UIApplication.h
1 /*
2 * Generated by class-dump 3.1.2.
3 *
4 * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
5 */
6
7 #import <UIKit/UIResponder.h>
8
9 @class NSArray, NSMutableSet, UIEvent;
10 @protocol UIApplicationDelegate;
11
12 @interface UIApplication : UIResponder
13 {
14 id <UIApplicationDelegate> _delegate;
15 struct __CFDictionary *_touchMap;
16 NSMutableSet *_exclusiveTouchWindows;
17 UIEvent *_event;
18 NSArray *_topLevelNibObjects;
19 int _orientation;
20 struct {
21 unsigned int isActive:1;
22 unsigned int isSuspended:1;
23 unsigned int isSuspendedEventsOnly:1;
24 unsigned int isLaunchedSuspended:1;
25 unsigned int isHandlingURL:1;
26 unsigned int statusBarMode:8;
27 unsigned int statusBarShowsProgress:1;
28 unsigned int blockInteractionEvents:3;
29 unsigned int animatingKeyboard:1;
30 unsigned int forceExit:1;
31 unsigned int receivesMemoryWarnings:1;
32 unsigned int animatedSuspension:1;
33 unsigned int pendingSuspension:2;
34 unsigned int animateResumeNoPNG:1;
35 unsigned int showingProgress:1;
36 unsigned int receivesPowerMessages:1;
37 unsigned int isSuspendedUnderLock:1;
38 unsigned int shouldExitAfterSendSuspend:1;
39 unsigned int terminating:1;
40 unsigned int useCompatibleSuspendAnimation:3;
41 unsigned int isHandlingShortCutURL:1;
42 unsigned int proximitySensingEnabled:1;
43 unsigned int idleTimerDisabled:1;
44 unsigned int statusBarStyle:4;
45 unsigned int statusBarHidden:1;
46 unsigned int statusBarOrientation:3;
47 unsigned int deviceOrientation:3;
48 unsigned int delegateShouldBeReleasedUponSet:1;
49 unsigned int delegateHandleOpenURL:1;
50 unsigned int delegateDidReceiveMemoryWarning:1;
51 unsigned int delegateWillTerminate:1;
52 unsigned int delegateSignificantTimeChange:1;
53 unsigned int delegateWillChangeInterfaceOrientation:1;
54 unsigned int delegateDidChangeInterfaceOrientation:1;
55 unsigned int delegateWillChangeStatusBarFrame:1;
56 unsigned int delegateDidChangeStatusBarFrame:1;
57 unsigned int delegateDeviceAccelerated:1;
58 unsigned int delegateDeviceChangedOrientation:1;
59 unsigned int delegateDidBecomeActive:1;
60 unsigned int delegateWillResignActive:1;
61 unsigned int idleTimerDisableActive:1;
62 } _applicationFlags;
63 }
64
65 + (id)sharedApplication;
66 + (BOOL)isRunningInStoreDemoMode;
67 + (BOOL)shouldMakeUIForDefaultPNG;
68 - (id)init;
69 - (void)dealloc;
70 - (BOOL)shouldLaunchSafe;
71 - (BOOL)firstLaunchAfterBoot;
72 - (void)_setDelegate:(id)fp8 assumeOwnership:(BOOL)fp12;
73 - (void)setDelegate:(id)fp8;
74 - (id)delegate;
75 - (void)beginIgnoringInteractionEvents;
76 - (void)endIgnoringInteractionEvents;
77 - (BOOL)isIgnoringInteractionEvents;
78 - (void)setProximitySensingEnabled:(BOOL)fp8;
79 - (BOOL)isProximitySensingEnabled;
80 - (void)setIdleTimerDisabled:(BOOL)fp8;
81 - (BOOL)isIdleTimerDisabled;
82 - (void)_setActivated:(BOOL)fp8;
83 - (void)performInitializationWithURL:(id)fp8 asPanel:(BOOL)fp12;
84 - (void)_installAutoreleasePoolsIfNecessaryForMode:(struct __CFString *)fp8;
85 - (void)_run;
86 - (void)_runWithURL:(id)fp8;
87 - (void)reportAppLaunchFinished;
88 - (void)_registerForAlertItemStateChangeNotification;
89 - (void)_registerForSignificantTimeChangeNotification;
90 - (void)_registerForLanguageChangedNotification;
91 - (void)_registerForLocaleChangedNotification;
92 - (void)_registerForTimeChangedNotification;
93 - (void)_unregisterForSignificantTimeChangeNotification;
94 - (void)_unregisterForLanguageChangedNotification;
95 - (void)_unregisterForLocaleChangedNotification;
96 - (void)_unregisterForTimeChangedNotification;
97 - (void)_loadMainNibFile;
98 - (void)pushRunLoopMode:(id)fp8;
99 - (void)popRunLoopMode:(id)fp8;
100 - (void)sendAction:(SEL)fp8 fromSender:(id)fp12 toTarget:(id)fp16 forEvent:(struct __GSEvent *)fp20;
101 - (BOOL)sendAction:(SEL)fp8 toTarget:(id)fp12 fromSender:(id)fp16 forEvent:(id)fp20;
102 - (BOOL)sendAction:(SEL)fp8 to:(id)fp12 from:(id)fp16 forEvent:(id)fp20;
103 - (void)setNetworkActivityIndicatorVisible:(BOOL)fp8;
104 - (BOOL)isNetworkActivityIndicatorVisible;
105 - (void)_setStatusBarStyle:(int)fp8 orientation:(int)fp12 animated:(BOOL)fp16;
106 - (void)setStatusBarStyle:(int)fp8 animated:(BOOL)fp12;
107 - (void)setStatusBarStyle:(int)fp8;
108 - (int)statusBarStyle;
109 - (void)setStatusBarHidden:(BOOL)fp8 animated:(BOOL)fp12;
110 - (void)setStatusBarHidden:(BOOL)fp8;
111 - (BOOL)isStatusBarHidden;
112 - (void)setStatusBarOrientation:(int)fp8 animated:(BOOL)fp12;
113 - (void)setStatusBarOrientation:(int)fp8;
114 - (int)statusBarOrientation;
115 - (double)statusBarOrientationAnimationDuration;
116 - (struct CGRect)statusBarFrame;
117 - (struct CGRect)_statusBarFrameForMode:(int)fp8 orientation:(int)fp12;
118 - (void)applicationWillSuspend;
119 - (void)applicationWillSuspendForEventsOnly;
120 - (void)applicationWillSuspendUnderLock;
121 - (void)applicationDidResumeFromUnderLock;
122 - (void)applicationDidResume;
123 - (void)applicationDidResumeForEventsOnly;
124 - (void)applicationWillTerminate;
125 - (BOOL)applicationIsReadyToSuspend;
126 - (void)_setSuspended:(BOOL)fp8;
127 - (void)_setForceExit:(BOOL)fp8;
128 - (BOOL)isSuspended;
129 - (BOOL)isSuspendedEventsOnly;
130 - (BOOL)isSuspendedUnderLock;
131 - (void)_setSuspendedEventsOnly:(BOOL)fp8;
132 - (void)_setSuspendedUnderLock:(BOOL)fp8;
133 - (BOOL)_shouldAnimateResumption;
134 - (BOOL)_isLaunchedSuspended;
135 - (unsigned int)_portForEvent:(struct __GSEvent *)fp8;
136 - (void)suspendWithAnimation:(BOOL)fp8;
137 #if 1 // iPhoneOS 3.x
138 - (void)suspend;
139 #endif
140 - (BOOL)registerForSystemEvents;
141 - (BOOL)rendersLocally;
142 - (void)applicationStarted:(struct __GSEvent *)fp8;
143 - (void)applicationSuspended:(struct __GSEvent *)fp8;
144 - (void)applicationSuspendedSettingsUpdated:(struct __GSEvent *)fp8;
145 - (void)applicationExited:(struct __GSEvent *)fp8;
146 - (void)anotherApplicationFinishedLaunching:(struct __GSEvent *)fp8;
147 - (void)lockButtonDown:(struct __GSEvent *)fp8;
148 - (void)lockButtonUp:(struct __GSEvent *)fp8;
149 - (void)headsetButtonDown:(struct __GSEvent *)fp8;
150 - (void)headsetButtonUp:(struct __GSEvent *)fp8;
151 - (void)menuButtonDown:(struct __GSEvent *)fp8;
152 - (void)menuButtonUp:(struct __GSEvent *)fp8;
153 - (void)statusBarMouseDown:(struct __GSEvent *)fp8;
154 - (void)statusBarMouseDragged:(struct __GSEvent *)fp8;
155 - (void)statusBarMouseUp:(struct __GSEvent *)fp8;
156 - (void)ringerChanged:(int)fp8;
157 - (void)volumeChanged:(struct __GSEvent *)fp8;
158 - (void)acceleratedInX:(float)fp8 Y:(float)fp12 Z:(float)fp16;
159 - (void)deviceOrientationChanged:(struct __GSEvent *)fp8;
160 - (void)proximityStateChanged:(BOOL)fp8;
161 - (void)accessoryAvailabilityChanged:(struct __GSEvent *)fp8;
162 - (void)_handleAccessoryKeyStateChanged:(struct __GSEvent *)fp8;
163 - (void)accessoryKeyStateChanged:(struct __GSEvent *)fp8;
164 - (void)accessoryEvent:(struct __GSEvent *)fp8;
165 - (void)handleOutOfLineDataResponse:(struct __GSEvent *)fp8;
166 - (void)handleOutOfLineDataRequest:(struct __GSEvent *)fp8;
167 - (void)lockDevice:(struct __GSEvent *)fp8;
168 - (void)quitTopApplication:(struct __GSEvent *)fp8;
169 - (void)resetIdleDuration:(double)fp8;
170 - (void)resetIdleTimer;
171 - (void)_terminateWithStatus:(int)fp8;
172 - (void)terminate;
173 - (void)terminateWithSuccess;
174 - (void)applicationSuspend:(struct __GSEvent *)fp8;
175 - (void)_sendApplicationSuspend:(struct __GSEvent *)fp8;
176 - (void)updateSuspendedSettings:(id)fp8;
177 - (void)applicationResume:(struct __GSEvent *)fp8;
178 - (id)roleID;
179 - (id)displayIdentifier;
180 - (BOOL)shouldShowPreferences;
181 - (BOOL)_useLegacyEventSystem;
182 - (void)openURL:(id)fp8 asPanel:(BOOL)fp12;
183 - (BOOL)openURL:(id)fp8;
184 - (void)applicationOpenToShortCut:(id)fp8;
185 - (void)applicationOpenURL:(id)fp8;
186 - (void)applicationOpenURL:(id)fp8 asPanel:(BOOL)fp12;
187 - (void)_applicationOpenURL:(id)fp8 asPanel:(BOOL)fp12;
188 - (BOOL)isHandlingOpenShortCut;
189 - (void)_setHandlingURL:(BOOL)fp8 url:(id)fp12;
190 - (BOOL)isHandlingURL;
191 - (void)applicationShowHideSettings:(struct __GSEvent *)fp8;
192 - (void)showTTYPromptForNumber:(id)fp8 withID:(int)fp12;
193 - (void)showNetworkPromptsIfNecessary:(BOOL)fp8;
194 - (void)setUsesBackgroundNetwork:(BOOL)fp8;
195 - (BOOL)usesBackgroundNetwork;
196 - (void)_finishResume;
197 - (void)_finishSuspension;
198 - (void)_finishSuspensionEventOnlyAnimation;
199 - (void)_finishSuspensionEventOnly;
200 - (int)suspendAnimationType;
201 - (BOOL)useCompatibleSuspensionAnimation;
202 - (void)setUseCompatibleSuspensionAnimation:(BOOL)fp8;
203 - (void)_animateSuspension:(BOOL)fp8 duration:(double)fp12 startTime:(double)fp20 scale:(float)fp28;
204 - (void)_setupResumeAnimation;
205 - (void)_animateResumptionWithStartTime:(double)fp8 duration:(double)fp16 withPNG:(BOOL)fp24;
206 - (void)_animateSlideSuspension:(double)fp8;
207 - (void)_windowDeallocating:(id)fp8;
208 - (void)_animateSuspension;
209 - (BOOL)animateSuspensionReturningToLastApp:(double)fp8;
210 - (void)otherApplicationWillSuspend:(struct __GSEvent *)fp8;
211 - (id)userHomeDirectory;
212 - (id)userLibraryDirectory;
213 - (struct CGRect)applicationSnapshotRectForOrientation:(int)fp8;
214 - (struct CGImage *)createApplicationDefaultPNG;
215 - (void)_writeApplicationSnapshot;
216 - (id)nameOfDefaultImageToUpdateAtSuspension;
217 - (id)_pathToDefaultImageNamed:(id)fp8;
218 - (void)_updateDefaultImage;
219 - (void)removeDefaultImage:(id)fp8;
220 - (BOOL)_isInteractionEvent:(struct __GSEvent *)fp8;
221 - (BOOL)_isTouchEvent:(struct __GSEvent *)fp8;
222 - (BOOL)launchApplicationWithIdentifier:(id)fp8 suspended:(BOOL)fp12;
223 - (void)_runSpringboardCommand:(id)fp8;
224 - (void)addStatusBarImageNamed:(id)fp8 removeOnAbnormalExit:(BOOL)fp12;
225 #if 1 // iPhoneOS 2.2
226 - (void)addStatusBarImageNamed:(id)fp8 removeOnExit:(BOOL)fp12;
227 #endif
228 - (void)addStatusBarImageNamed:(id)fp8;
229 - (void)removeStatusBarImageNamed:(id)fp8;
230 - (id)applicationBadge;
231 - (void)setApplicationBadge:(id)fp8;
232 #if 1 // iPhoneOS 3.x
233 - (void)setApplicationBadgeString:(id)fp8;
234 #endif
235 - (void)removeApplicationBadge;
236 - (int)applicationIconBadgeNumber;
237 - (void)setApplicationIconBadgeNumber:(int)fp8;
238 - (void)addDownloadingIconToHomeScreen:(id)fp8;
239 - (void)addWebClipToHomeScreen:(id)fp8;
240 - (BOOL)homeScreenCanAddIcons;
241 - (struct CGRect)statusBarRect;
242 - (void)_fetchInfoPlistFlags;
243 - (int)orientation;
244 - (int)statusBarMode;
245 - (int)_frontMostAppOrientation;
246 - (void)_setTouchMap:(struct __CFDictionary *)fp8;
247 - (struct __CFDictionary *)_touchMap;
248 - (id)_event;
249 - (id)_exclusiveTouchWindows;
250 - (BOOL)_isTrackingAnyTouch;
251 - (void)setStatusBarMode:(int)fp8 orientation:(int)fp12 duration:(float)fp16 fenceID:(int)fp20 animation:(int)fp24;
252 - (void)setStatusBarMode:(int)fp8 orientation:(int)fp12 duration:(float)fp16 fenceID:(int)fp20;
253 - (void)setStatusBarMode:(int)fp8 orientation:(int)fp12 duration:(float)fp16;
254 - (void)setStatusBarMode:(int)fp8 duration:(float)fp12;
255 - (void)setStatusBarCustomText:(id)fp8;
256 - (void)removeStatusBarCustomText;
257 - (void)_setStatusBarShowsProgress:(id)fp8;
258 - (void)setStatusBarShowsProgress:(BOOL)fp8;
259 - (void)setIgnoresInteractionEvents:(BOOL)fp8;
260 - (BOOL)ignoresInteractionEvents;
261 - (int)blockInteractionEvents;
262 - (void)significantTimeChange;
263 - (BOOL)is24HourMode;
264 - (void)_handleUserDefaultsDidChange:(id)fp8;
265 - (void)userDefaultsDidChange:(id)fp8;
266 - (void)_clearTouchesForView:(id)fp8;
267 - (void)_cancelCurrentTouchEvent;
268 - (void)_registerForUserDefaultsChanges;
269 - (void)_unregisterForUserDefaultsChanges;
270 - (void)vibrateForDuration:(int)fp8;
271 - (void)setBacklightFactor:(int)fp8;
272 - (void)setBacklightLevel:(float)fp8;
273 - (void)setProximitySensorEnabled:(BOOL)fp8;
274 - (void)setSystemVolumeHUDEnabled:(BOOL)fp8 forAudioCategory:(id)fp12;
275 - (void)setSystemVolumeHUDEnabled:(BOOL)fp8;
276 - (void)_dumpUIHierarchy:(struct __GSEvent *)fp8;
277 - (void)_dumpScreenContents:(struct __GSEvent *)fp8;
278 - (void)_processScriptEvent:(struct __GSEvent *)fp8;
279 - (void)_performMemoryWarning;
280 - (void)didReceiveMemoryWarning;
281 - (void)didReceiveUrgentMemoryWarning;
282 - (void)_receivedMemoryNotification;
283 - (void)setReceivesMemoryWarnings:(BOOL)fp8;
284 - (void)_registerForSleepWake;
285 - (void)_unregisterForSleepWake;
286 - (void)willSleep;
287 - (void)didWake;
288 - (void)_noteStatusBarHeightChanged:(float)fp8 fence:(int)fp12;
289 - (void)statusBarWillAnimateToHeight:(float)fp8 duration:(double)fp12 fence:(int)fp20;
290 - (int)lastEventType;
291 - (void)_cancelTouches:(id)fp8 withEvent:(id)fp12;
292 - (void)_cancelAllTouches;
293 - (void)_cancelEvent:(id)fp8 forWindow:(id)fp12;
294 - (void)_cancelEvent:(id)fp8;
295 - (BOOL)handleEvent:(struct __GSEvent *)fp8;
296 - (BOOL)handleEvent:(struct __GSEvent *)fp8 withNewEvent:(id)fp12;
297 - (void)sendEvent:(id)fp8;
298 - (id)keyWindow;
299 - (id)windows;
300 - (void)setUIOrientation:(int)fp8;
301 - (void)setExpectsFaceContact:(BOOL)fp8;
302 - (void)setRelaunchesAfterAbnormalExit:(BOOL)fp8;
303 - (void)didDismissMiniAlert;
304 - (void)willDisplayMiniAlert:(int *)fp8;
305 - (void)willDismissMiniAlert:(int *)fp8 andShowAnother:(BOOL)fp12;
306 - (BOOL)isLocked;
307 - (BOOL)isPasscodeRequiredToUnlock;
308 - (void)requestDeviceUnlock;
309 - (BOOL)canShowAlerts;
310 - (id)displayIDForURLScheme:(id)fp8 isPublic:(BOOL)fp12;
311 - (int)alertOrientation;
312 - (void)runModal:(id)fp8;
313 - (void)stopModal;
314
315 @end
316