/* Cydia - iPhone UIKit Front-End for Debian APT
- * Copyright (C) 2008-2013 Jay Freeman (saurik)
+ * Copyright (C) 2008-2015 Jay Freeman (saurik)
*/
/* GNU General Public License, Version 3 {{{ */
#include <UIKit/UIKit.h>
#include <MessageUI/MessageUI.h>
-#include <Menes/ObjectHandle.h>
-
@class IndirectDelegate;
+@interface Diversion : NSObject
+- (id) initWithFrom:(NSString *)from to:(NSString *)to;
+@end
+
@protocol CyteWebViewControllerDelegate
- (void) retainNetworkActivityIndicator;
- (void) releaseNetworkActivityIndicator;
CyteWebViewDelegate,
MFMailComposeViewControllerDelegate,
UIWebViewDelegate
-> {
- _H<CyteWebView, 1> webview_;
- _transient UIScrollView *scroller_;
-
- _H<UIActivityIndicatorView> indicator_;
- _H<IndirectDelegate, 1> indirect_;
- _H<NSURLAuthenticationChallenge> challenge_;
-
- bool error_;
- _H<NSURLRequest> request_;
- bool ready_;
-
- _transient NSNumber *sensitive_;
-
- _H<NSString> title_;
- _H<NSMutableSet> loading_;
-
- _H<NSMutableSet> registered_;
- _H<NSTimer> timer_;
-
- // XXX: NSString * or UIImage *
- _H<NSObject> custom_;
- _H<NSString> style_;
-
- _H<WebScriptObject> function_;
-
- float width_;
- Class class_;
- _H<UIColor> color_;
-
- _H<UIBarButtonItem> reloaditem_;
- _H<UIBarButtonItem> loadingitem_;
-
- bool visible_;
- bool hidesNavigationBar_;
- bool allowsNavigationAction_;
-}
+>
+ (void) _initialize;
- (CyteWebView *) webView;
+- (CyteWebViewController *) indirect;
- (void) setRequest:(NSURLRequest *)request;
+- (NSURLRequest *) request;
+
- (void) setURL:(NSURL *)url;
- (void) setURL:(NSURL *)url withReferrer:(NSString *)referrer;
- (id) initWithWidth:(float)width;
- (id) initWithWidth:(float)width ofClass:(Class)_class;
-- (void) setColor:(UIColor *)color;
++ (void) setApplicationNameForUserAgent:(NSString *)userAgent;
+- (NSString *) applicationNameForUserAgent;
- (void) callFunction:(WebScriptObject *)function;
+- (void) reloadURLWithCache:(BOOL)cache;
- (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame;
+
- (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
+- (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
+ (float) defaultWidth;
- (void) customButtonClicked;
- (void) applyRightButton;
-- (UIBarButtonItem *) customButton;
- (UIBarButtonItem *) rightButton;
- (void) applyLeftButton;
- (void) registerFrame:(WebFrame *)frame;
++ (void) addDiversion:(Diversion *)diversion;
+
@end
#endif//CyteKit_WebViewController_H