JubeatPlus 3.9.11
Loading...
Searching...
No Matches
JcfDownloadPageViewController Class Reference

Hosts the jubeatLab chart download web page and drives its download modal. More...

#include <JcfDownloadPageViewController.h>

Inheritance diagram for JcfDownloadPageViewController:
Collaboration diagram for JcfDownloadPageViewController:

Instance Methods

(void) - initPageView
 Builds the web view and loading indicator, registers for the suspend notification, and loads the pending request.
(instancetype) - initWithMusicID:delegate:
 Initialises the controller to download by music id (a sequence-search page).
(instancetype) - initWithSequenceID:delegate:
 Initialises the controller to download by sequence id (a sequence-detail page).
(instancetype) - initWithURL:delegate:
 Initialises the controller to load a raw URL, opening a top-page session first.
(nullable NSURLRequest *) - uiWebView:resource:willSendRequest:redirectResponse:fromDataSource:
 Informal UIWebView resource-load delegate: stamps the jubeatLab User-Agent on every outgoing request.
(void) - webViewDidStartLoad:
 UIWebViewDelegate : clears the shared URL cache when a load starts.
(void) - pushClose:
 Close action: persists defaults and tells the delegate -customWebViewClose:seqIndex: .
(BOOL) - webView:shouldStartLoadWithRequest:navigationType:
 UIWebViewDelegate : intercepts the jubeatLab session-failed URL, the jubeatplus custom scheme (download and Twitter share), and lets other requests through.
(void) - webViewDidFinishLoad:
 UIWebViewDelegate : stops and removes the loading indicator when the load finishes.
(void) - webView:didFailLoadWithError:
 UIWebViewDelegate : shows the failure alert.
(void) - removeDownloadView
 Tears down the download modal and its dimming cover, and restores the navigation chrome.
(void) - jcfDownloadEnd:
 JcfDownloadViewDelegate : the modal finished; fades it out, tells the delegate, and clears the downloading flag.
(void) - jcfDownloadMoveStore:packID:
 JcfDownloadViewDelegate : the modal requested a store jump; fades it out and tells the delegate -moveStore:packID: .
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Portrait-only autorotation predicate.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported orientations mask: portrait only.
(BOOL) - shouldAutorotate
 Whether the controller may autorotate: always YES.
(void) - dealloc
 Removes the suspend observer, then chains to super .
(void) - openStartPage
 Loads the pending nextUrlRequest into the web view.
(void) - sessionCreate
 Opens a top-page jubeatLab session and starts it.
(void) - jubeatLabAccessProceed:
 jubeatLabAccess delegate: progress callback (empty).
(void) - jubeatLabAccessError:
 jubeatLabAccess delegate: the session request failed; clears the downloader and shows the failure alert.
(void) - jubeatLabAccessFinished:
 jubeatLabAccess delegate: the session request finished; dispatches on the response Status (open the page, refresh the keychain and retry, or show the server message).
(void) - successIDDownload:
 EditorIDManagerDelegate : identifier provisioning succeeded; opens a session or reports the error.
(void) - errorIDDownload:msgStr:
 EditorIDManagerDelegate : identifier provisioning failed; shows an alert.
(void) - viewWillDisappear:
 Dismisses any presented alert on the way off screen.
(void) - socialSend:
 Presents an SLComposeViewController for a social service, seeded with socialString .
(void) - sendTwitter
 Presents the Twitter share composer.
(void) - sendFaceBook
 Presents the Facebook share composer, when the Social framework is available.
(void) - appSuspended:
 Suspend-notification handler: dismisses an open share composer.
(void) - viewDidAppear:
 Builds the page on first appearance and, for the raw-URL flow, opens a session or provisions an editor identifier.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertSelect:
 Sent when the user taps a button in an alert built with makeAlert:.
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.

Properties

BOOL bFromNavigate
 Whether the controller was pushed onto a navigation stack (hides the back button while the modal is up rather than disabling the left bar button).
BOOL bCloseStoreMove
 Whether closing the controller should trigger a store move.

Detailed Description

Hosts the jubeatLab chart download web page and drives its download modal.

Method Documentation

◆ appSuspended:

- (void) appSuspended: (nullable NSNotification *) notification

Suspend-notification handler: dismisses an open share composer.

Parameters
notificationThe notification.
Ghidra address:
0x1e8904

◆ dealloc

- (void) dealloc

Removes the suspend observer, then chains to super .

Ghidra address:
0x1e80f8

◆ errorIDDownload:msgStr:

- (void) errorIDDownload: (nullable id) manager
msgStr: (nullable NSString *) msgStr 

EditorIDManagerDelegate : identifier provisioning failed; shows an alert.

Parameters
managerThe manager.
msgStrThe failure message, or nil to use the default communication-error text.
Ghidra address:
0x1e85bc

Reimplemented from <EditorIDManagerDelegate>.

◆ initPageView

- (void) initPageView

Builds the web view and loading indicator, registers for the suspend notification, and loads the pending request.

Ghidra address:
0x1e6648

◆ initWithMusicID:delegate:

- (instancetype) initWithMusicID: (unsigned int) musicID
delegate: (nullable id< JcfDownloadPageViewControllerDelegate >) delegate 

Initialises the controller to download by music id (a sequence-search page).

Parameters
musicIDThe music id whose sequences to search.
delegateThe object told when the page closes. Held weakly.
Returns
The initialised controller.
Ghidra address:
0x1e699c

◆ initWithSequenceID:delegate:

- (instancetype) initWithSequenceID: (nullable NSString *) sequenceID
delegate: (nullable id< JcfDownloadPageViewControllerDelegate >) delegate 

Initialises the controller to download by sequence id (a sequence-detail page).

Parameters
sequenceIDThe sequence id to open.
delegateThe object told when the page closes. Held weakly.
Returns
The initialised controller.
Ghidra address:
0x1e6ad4

◆ initWithURL:delegate:

- (instancetype) initWithURL: (nullable NSString *) url
delegate: (nullable id< JcfDownloadPageViewControllerDelegate >) delegate 

Initialises the controller to load a raw URL, opening a top-page session first.

Parameters
urlThe URL string to load.
delegateThe object told when the page closes. Held weakly.
Returns
The initialised controller.
Ghidra address:
0x1e6c1c

◆ jcfDownloadEnd:

- (void) jcfDownloadEnd: (nullable JcfDownloadView *) view

JcfDownloadViewDelegate : the modal finished; fades it out, tells the delegate, and clears the downloading flag.

Parameters
viewThe modal.
Ghidra address:
0x1e7a4c

Reimplemented from <JcfDownloadViewDelegate>.

◆ jcfDownloadMoveStore:packID:

- (void) jcfDownloadMoveStore: (nullable JcfDownloadView *) view
packID: (nullable NSString *) packID 

JcfDownloadViewDelegate : the modal requested a store jump; fades it out and tells the delegate -moveStore:packID: .

Parameters
viewThe modal.
packIDThe comprised-pack identifier.
Ghidra address:
0x1e7de8

Reimplemented from <JcfDownloadViewDelegate>.

◆ jubeatLabAccessError:

- (void) jubeatLabAccessError: (nullable jubeatLabAccess *) access

jubeatLabAccess delegate: the session request failed; clears the downloader and shows the failure alert.

Parameters
accessThe failed downloader.
Ghidra address:
0x1e8204

◆ jubeatLabAccessFinished:

- (void) jubeatLabAccessFinished: (nullable jubeatLabAccess *) access

jubeatLabAccess delegate: the session request finished; dispatches on the response Status (open the page, refresh the keychain and retry, or show the server message).

Parameters
accessThe finished downloader.
Ghidra address:
0x1e8328

◆ jubeatLabAccessProceed:

- (void) jubeatLabAccessProceed: (nullable jubeatLabAccess *) access

jubeatLabAccess delegate: progress callback (empty).

Parameters
accessThe downloader.
Ghidra address:
0x1e8200

◆ openStartPage

- (void) openStartPage

Loads the pending nextUrlRequest into the web view.

Ghidra address:
0x1e8174

◆ pushClose:

- (void) pushClose: (nullable id) sender

Close action: persists defaults and tells the delegate -customWebViewClose:seqIndex: .

Ignored while the download modal is up.

Parameters
senderThe sender.
Ghidra address:
0x1e6ef8

◆ removeDownloadView

- (void) removeDownloadView

Tears down the download modal and its dimming cover, and restores the navigation chrome.

Ghidra address:
0x1e7964

◆ sendFaceBook

- (void) sendFaceBook

Presents the Facebook share composer, when the Social framework is available.

Ghidra address:
0x1e88d8

◆ sendTwitter

- (void) sendTwitter

Presents the Twitter share composer.

Ghidra address:
0x1e88c0

◆ sessionCreate

- (void) sessionCreate

Opens a top-page jubeatLab session and starts it.

Ghidra address:
0x1e819c

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller may autorotate: always YES.

Returns
Always YES.
Ghidra address:
0x1e80f0
Ghidra address:
0x1e80f0

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Portrait-only autorotation predicate.

Parameters
interfaceOrientationThe proposed orientation.
Returns
YES for the two portrait orientations.
Ghidra address:
0x1e80d8
Ghidra address:
0x1e80d8

◆ socialSend:

- (void) socialSend: (nullable NSString *) serviceType

Presents an SLComposeViewController for a social service, seeded with socialString .

Parameters
serviceTypeThe social service type constant.
Ghidra address:
0x1e8738

◆ successIDDownload:

- (void) successIDDownload: (nullable id) manager

EditorIDManagerDelegate : identifier provisioning succeeded; opens a session or reports the error.

Parameters
managerThe manager.
Ghidra address:
0x1e8538

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported orientations mask: portrait only.

Returns
The portrait orientation mask.
Ghidra address:
0x1e80e8
Ghidra address:
0x1e80e8

◆ uiWebView:resource:willSendRequest:redirectResponse:fromDataSource:

- (nullable NSURLRequest *) uiWebView: (nullable id) webView
resource: (nullable id) resource
willSendRequest: (nullable NSURLRequest *) request
redirectResponse: (nullable NSURLResponse *) redirectResponse
fromDataSource: (nullable id) dataSource 

Informal UIWebView resource-load delegate: stamps the jubeatLab User-Agent on every outgoing request.

Parameters
webViewThe web view.
resourceThe resource identifier.
requestThe request about to be sent.
redirectResponseThe redirect response, if any.
dataSourceThe data source.
Returns
The request, with its User-Agent header set.
Ghidra address:
0x1e6d68

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

Builds the page on first appearance and, for the raw-URL flow, opens a session or provisions an editor identifier.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x1e8954
Ghidra address:
0x1e8954

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Dismisses any presented alert on the way off screen.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x1e86f0
Ghidra address:
0x1e86f0

◆ webView:didFailLoadWithError:

- (void) webView: (nullable UIWebView *) webView
didFailLoadWithError: (nullable NSError *) error 

UIWebViewDelegate : shows the failure alert.

Parameters
webViewThe web view.
errorThe load error.
Ghidra address:
0x1e787c

◆ webView:shouldStartLoadWithRequest:navigationType:

- (BOOL) webView: (nullable UIWebView *) webView
shouldStartLoadWithRequest: (nullable NSURLRequest *) request
navigationType: (UIWebViewNavigationType) navigationType 

UIWebViewDelegate : intercepts the jubeatLab session-failed URL, the jubeatplus custom scheme (download and Twitter share), and lets other requests through.

Parameters
webViewThe web view.
requestThe request about to load.
navigationTypeThe navigation type.
Returns
YES to allow the load, NO to intercept it.
Ghidra address:
0x1e6fe8

◆ webViewDidFinishLoad:

- (void) webViewDidFinishLoad: (nullable UIWebView *) webView

UIWebViewDelegate : stops and removes the loading indicator when the load finishes.

Parameters
webViewThe web view.
Ghidra address:
0x1e7820

◆ webViewDidStartLoad:

- (void) webViewDidStartLoad: (nullable UIWebView *) webView

UIWebViewDelegate : clears the shared URL cache when a load starts.

Parameters
webViewThe web view.
Ghidra address:
0x1e6eb0

Property Documentation

◆ bCloseStoreMove

- (BOOL) bCloseStoreMove
readwritenonatomicassign

Whether closing the controller should trigger a store move.

Ghidra address:
0x1e8a1c
Ghidra address:
0x1e8a2c
Ghidra address:
0x1e8a1c

◆ bFromNavigate

- (BOOL) bFromNavigate
readwritenonatomicassign

Whether the controller was pushed onto a navigation stack (hides the back button while the modal is up rather than disabling the left bar button).

Ghidra address:
0x1e89fc
Ghidra address:
0x1e8a0c
Ghidra address:
0x1e89fc

The documentation for this class was generated from the following files: