X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/35f0a3b5de5a22872f7fbd96183f510a5ad80aa0..31f9c8f728e31d0614b9c0aa9fe3ddb60545a366:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 96679a59..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 @@ -151,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; @@ -166,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 @@ -195,6 +204,7 @@ typedef enum { - (void) applicationWillResignActive:(UIApplication *)application; - (void) applicationWillSuspend; - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended; +- (void) openURL:(NSURL *)url asPanel:(BOOL)panel; - (void) setStatusBarShowsProgress:(BOOL)shows; - (void) _setSuspended:(BOOL)suspended; - (void) terminateWithSuccess; @@ -237,9 +247,8 @@ typedef enum { @interface UITabBarController (Apple) - (UITransitionView *) _transitionView; -- (UIViewController *) transientViewController; -- (void) setTransientViewController:(UIViewController *)controller; -- (void) setTransientViewController:(UIViewController *)controller animated:(BOOL)animated; +- (void) concealTabBarSelection; +- (void) revealTabBarSelection; @end @interface UITabBarItem (Apple) @@ -290,6 +299,7 @@ typedef enum { - (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; @@ -339,11 +349,11 @@ typedef enum { @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; @@ -359,6 +369,14 @@ extern float const UIScrollViewDecelerationRateNormal; #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; extern float const UIWebViewGrowsAndShrinksToFitHeight;