X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/d49718a1f7a4cf319866cf684a4a7adb7d3a6025..31f9c8f728e31d0614b9c0aa9fe3ddb60545a366:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index fcdb490a..e9df9180 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -61,9 +61,9 @@ typedef enum { @end @interface UIProgressHUD : UIView -- (id) initWithWindow:(UIWindow *)window; +- (void) hide; - (void) setText:(NSString *)text; -- (void) show:(BOOL)show; +- (void) showInView:(UIView *)view; @end @interface UIProgressIndicator : UIView @@ -90,6 +90,9 @@ typedef enum { - (void) setText:(NSString *)text; @end +@interface UITransitionView : UIView +@end + @interface UIWebDocumentView : UIView - (CGRect) documentBounds; - (void) enableReachability; @@ -148,6 +151,10 @@ typedef enum { // }}} // @interface NS* (*) {{{ +@interface NSMutableURLRequest (Apple) +- (void) setHTTPShouldUsePipelining:(BOOL)pipelining; +@end + @interface NSString (Apple) - (NSString *) stringByAddingPercentEscapes; - (NSString *) stringByReplacingCharacter:(UniChar)from withCharacter:(UniChar)to; @@ -163,6 +170,11 @@ typedef enum { - (NSURL *) youTubeURL; @end +@interface NSURLRequest (Apple) ++ (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *)host; ++ (void) setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString *)host; +@end + @interface NSValue (Apple) + (NSValue *) valueWithSize:(CGSize)size; @end @@ -192,9 +204,7 @@ 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) openURL:(NSURL *)url asPanel:(BOOL)panel; - (void) setStatusBarShowsProgress:(BOOL)shows; - (void) _setSuspended:(BOOL)suspended; - (void) terminateWithSuccess; @@ -204,6 +214,10 @@ typedef enum { - (UIView *) view; @end +@interface UIColor (Apple) ++ (UIColor *) pinStripeColor; +@end + @interface UIControl (Apple) - (void) addTarget:(id)target action:(SEL)action forEvents:(NSInteger)events; @end @@ -231,12 +245,19 @@ typedef enum { - (UITextField *) searchField; @end +@interface UITabBarController (Apple) +- (UITransitionView *) _transitionView; +- (void) concealTabBarSelection; +- (void) revealTabBarSelection; +@end + @interface UITabBarItem (Apple) - (void) setAnimatedBadge:(BOOL)animated; @end @interface UITableViewCell (Apple) - (float) selectionPercent; +- (void) _updateHighlightColorsForView:(id)view highlighted:(BOOL)highlighted; @end @interface UITextField (Apple) @@ -277,6 +298,8 @@ typedef enum { - (UIWebDocumentView *) _documentView; - (UIScrollView *) _scrollView; - (UIScroller *) _scroller; +- (void) _updateViewSettings; +- (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message; //- (WebView *) webView:(WebView *)view createWebViewWithRequest:(NSURLRequest *)request; - (void) webView:(WebView *)view decidePolicyForNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id)listener; - (void) webView:(WebView *)view decidePolicyForNewWindowAction:(NSDictionary *)action request:(NSURLRequest *)request newFrameName:(NSString *)name decisionListener:(id)listener; @@ -297,6 +320,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, @@ -306,7 +330,6 @@ typedef enum { } UIModalPresentationStyle; #define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic -#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5) #define UIBarStyleBlack UIBarStyleBlackOpaque @@ -321,18 +344,38 @@ 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 +// }}} + +#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0 +#define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32 +#endif + +@interface UIScreen (iOS_4_0) +@property(nonatomic,readonly) CGFloat scale; +@end // extern *; {{{ extern CFStringRef const kGSDisplayIdentifiersCapability; @@ -340,6 +383,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); // }}}