JubeatPlus 3.9.11
Loading...
Searching...
No Matches
JcfDownloadPageViewController.h
Go to the documentation of this file.
1
14
15#import <UIKit/UIKit.h>
16
17#import "AlertViewManager.h"
18#import "EditorIDManager.h"
19#import "JcfDownloadView.h"
20
22@class jubeatLabAccess;
23
24NS_ASSUME_NONNULL_BEGIN
25
32@protocol JcfDownloadPageViewControllerDelegate <NSObject>
33@optional
39- (void)customWebViewClose:(nullable JcfDownloadPageViewController *)controller
40 seqIndex:(nullable NSString *)seqIndex;
45- (void)downloadEnd:(nullable JcfDownloadPageViewController *)view;
51- (void)downloadEnd:(nullable JcfDownloadPageViewController *)view
52 musicID:(nullable NSNumber *)musicID;
58- (void)moveStore:(nullable id)store packID:(nullable NSString *)packID;
59@end
60
64@interface JcfDownloadPageViewController : UIViewController <UIWebViewDelegate,
68
74- (void)initPageView;
75
83- (instancetype)initWithMusicID:(unsigned int)musicID
84 delegate:(nullable id<JcfDownloadPageViewControllerDelegate>)delegate;
85
93- (instancetype)initWithSequenceID:(nullable NSString *)sequenceID
94 delegate:(nullable id<JcfDownloadPageViewControllerDelegate>)delegate;
95
103- (instancetype)initWithURL:(nullable NSString *)url
104 delegate:(nullable id<JcfDownloadPageViewControllerDelegate>)delegate;
105
117- (nullable NSURLRequest *)uiWebView:(nullable id)webView
118 resource:(nullable id)resource
119 willSendRequest:(nullable NSURLRequest *)request
120 redirectResponse:(nullable NSURLResponse *)redirectResponse
121 fromDataSource:(nullable id)dataSource;
122
128- (void)webViewDidStartLoad:(nullable UIWebView *)webView;
129
136- (void)pushClose:(nullable id)sender;
137
147- (BOOL)webView:(nullable UIWebView *)webView
148 shouldStartLoadWithRequest:(nullable NSURLRequest *)request
149 navigationType:(UIWebViewNavigationType)navigationType;
150
156- (void)webViewDidFinishLoad:(nullable UIWebView *)webView;
157
164- (void)webView:(nullable UIWebView *)webView didFailLoadWithError:(nullable NSError *)error;
165
170- (void)removeDownloadView;
171
178- (void)jcfDownloadEnd:(nullable JcfDownloadView *)view;
179
187- (void)jcfDownloadMoveStore:(nullable JcfDownloadView *)view packID:(nullable NSString *)packID;
188
195- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
196
202- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
203
209- (BOOL)shouldAutorotate;
210
215- (void)dealloc;
216
221- (void)openStartPage;
222
227- (void)sessionCreate;
228
234- (void)jubeatLabAccessProceed:(nullable jubeatLabAccess *)access;
235
242- (void)jubeatLabAccessError:(nullable jubeatLabAccess *)access;
243
250- (void)jubeatLabAccessFinished:(nullable jubeatLabAccess *)access;
251
258- (void)successIDDownload:(nullable id)manager;
259
266- (void)errorIDDownload:(nullable id)manager msgStr:(nullable NSString *)msgStr;
267
273- (void)viewWillDisappear:(BOOL)animated;
274
280- (void)socialSend:(nullable NSString *)serviceType;
281
286- (void)sendTwitter;
287
292- (void)sendFaceBook;
293
299- (void)appSuspended:(nullable NSNotification *)notification;
300
307- (void)viewDidAppear:(BOOL)animated;
308
315@property(nonatomic) BOOL bFromNavigate;
316
322@property(nonatomic) BOOL bCloseStoreMove;
323
324@end
325
326NS_ASSUME_NONNULL_END
327
328// code: language=Objective-C
329// kate: hl Objective-C;
330// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The editor identifier store, backed by the keychain.
The modal board that downloads one jubeatLab custom sequence (a .jcf chart).
Hosts the jubeatLab chart download web page and drives its download modal.
Definition JcfDownloadPageViewController.h:67
void initPageView()
Builds the web view and loading indicator, registers for the suspend notification,...
Definition JcfDownloadPageViewController.m:68
BOOL shouldAutorotate()
Whether the controller may autorotate: always YES.
Definition JcfDownloadPageViewController.m:356
void openStartPage()
Loads the pending nextUrlRequest into the web view.
Definition JcfDownloadPageViewController.m:371
void dealloc()
Removes the suspend observer, then chains to super .
Definition JcfDownloadPageViewController.m:363
UIInterfaceOrientationMask supportedInterfaceOrientations()
The supported orientations mask: portrait only.
Definition JcfDownloadPageViewController.m:351
void sendFaceBook()
Presents the Facebook share composer, when the Social framework is available.
Definition JcfDownloadPageViewController.m:529
BOOL bFromNavigate
Whether the controller was pushed onto a navigation stack (hides the back button while the modal is u...
Definition JcfDownloadPageViewController.m:563
void removeDownloadView()
Tears down the download modal and its dimming cover, and restores the navigation chrome.
Definition JcfDownloadPageViewController.m:279
void sendTwitter()
Presents the Twitter share composer.
Definition JcfDownloadPageViewController.m:524
void sessionCreate()
Opens a top-page jubeatLab session and starts it.
Definition JcfDownloadPageViewController.m:376
BOOL bCloseStoreMove
Whether closing the controller should trigger a store move.
Definition JcfDownloadPageViewController.m:573
A gradient-backed board that downloads a .jcf chart and reports the outcome.
Definition JcfDownloadView.h:48
Builds and holds an HTTP request to the jubeatLab API and reports its outcome to a delegate.
Definition jubeatLabAccess.h:26
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Told how the editor-identifier provisioning download finished.
Definition EditorIDManager.h:22
What a JcfDownloadView tells its owner.
Definition JcfDownloadView.h:29