X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/4c3cf6af69f13897641cc8df4c1194e7e19ec26f..eceab8e673ae89e18c01aac0563ff6056b0d7a55:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index f60e3946..678b8b62 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -1,4 +1,5 @@ #ifndef CYDIA_UIKITPRIVATE_H +#define CYDIA_UIKITPRIVATE_H // #include <*> {{{ #include @@ -294,11 +295,38 @@ typedef enum { @end // }}} -// extern *; {{{ -extern "C" CFStringRef const kGSDisplayIdentifiersCapability; +// #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 + +typedef enum { + UIModalPresentationFullScreen, + UIModalPresentationPageSheet, + UIModalPresentationFormSheet, + UIModalPresentationCurrentContext, +} UIModalPresentationStyle; + +#define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic +#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5) + +@class NSUndoManager; +@class UIPasteboard; + +@interface UIActionSheet (iPad) +- (void) showFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated; +@end + +@interface UIViewController (iPad) +- (void) setModalPresentationStyle:(UIModalPresentationStyle)style; +@end -extern "C" float const UIWebViewGrowsAndShrinksToFitHeight; -extern "C" float const UIWebViewScalesToFitScale; +#endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER +// }}} + +// extern *; {{{ +extern CFStringRef const kGSDisplayIdentifiersCapability; +extern float const UIWebViewGrowsAndShrinksToFitHeight; +extern float const UIWebViewScalesToFitScale; // }}} // extern "C" *(); {{{ extern "C" UIImage *_UIImageWithName(NSString *name);