]> git.saurik.com Git - cydia.git/blobdiff - iPhonePrivate.h
Support ShowInternals in more places.
[cydia.git] / iPhonePrivate.h
index ce4fa1304706bcd4f4b5bb1358bdc3539bc8b2d4..96d3f10dd6c3a2e75c68b16c722b83d76e400535 100644 (file)
@@ -90,6 +90,9 @@ typedef enum {
 - (void) setText:(NSString *)text;
 @end
 
+@interface UITransitionView : UIView
+@end
+
 @interface UIWebDocumentView : UIView
 - (CGRect) documentBounds;
 - (void) enableReachability;
@@ -192,9 +195,6 @@ typedef enum {
 - (void) applicationWillResignActive:(UIApplication *)application;
 - (void) applicationWillSuspend;
 - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended;
-- (void) removeApplicationBadge;
-- (void) setApplicationBadge:(NSString *)badge;
-- (void) setApplicationBadgeString:(NSString *)badge;
 - (void) setStatusBarShowsProgress:(BOOL)shows;
 - (void) _setSuspended:(BOOL)suspended;
 - (void) terminateWithSuccess;
@@ -235,6 +235,12 @@ typedef enum {
 - (UITextField *) searchField;
 @end
 
+@interface UITabBarController (Apple)
+- (UITransitionView *) _transitionView;
+- (void) concealTabBarSelection;
+- (void) revealTabBarSelection;
+@end
+
 @interface UITabBarItem (Apple)
 - (void) setAnimatedBadge:(BOOL)animated;
 @end
@@ -303,6 +309,7 @@ typedef enum {
 // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{
 #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
 #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
+// XXX: this is a random jumble of garbage
 
 typedef enum {
     UIModalPresentationFullScreen,
@@ -312,7 +319,6 @@ typedef enum {
 } UIModalPresentationStyle;
 
 #define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic
-#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5)
 
 #define UIBarStyleBlack UIBarStyleBlackOpaque
 
@@ -327,18 +333,34 @@ typedef enum {
 - (void) setModalPresentationStyle:(UIModalPresentationStyle)style;
 @end
 
+@interface UIApplication (iOS_3_0)
+@property(nonatomic) BOOL applicationSupportsShakeToEdit;
+@end
+
 @interface UIScrollView (iOS_3_0)
-@property(assign, nonatomic) float decelerationRate;
+@property(assign,nonatomic) float decelerationRate;
 @end
 
 @interface UIWebView (iOS_3_0)
-@property(assign, nonatomic) NSUInteger dataDetectorTypes;
+@property(assign,nonatomic) NSUInteger dataDetectorTypes;
 @end
 
 extern float const UIScrollViewDecelerationRateNormal;
 
 #endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
 // }}}
+// #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 {{{
+#if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000
+
+#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5)
+#define kCFCoreFoundationVersionNumber_iPhoneOS_3_0 478.47
+
+#endif
+// }}}
+
+@interface UIScreen (iOS_4_0)
+@property(nonatomic,readonly) CGFloat scale;
+@end
 
 // extern *; {{{
 extern CFStringRef const kGSDisplayIdentifiersCapability;
@@ -346,6 +368,8 @@ extern float const UIWebViewGrowsAndShrinksToFitHeight;
 extern float const UIWebViewScalesToFitScale;
 // }}}
 // extern "C" *(); {{{
+extern "C" void *reboot2(uint64_t flags);
+extern "C" mach_port_t SBSSpringBoardServerPort();
 extern "C" UIImage *_UIImageWithName(NSString *name);
 extern "C" void UISetColor(CGColorRef color);
 // }}}