|
JubeatPlus 3.9.11
|
A gradient-backed board that downloads a .jcf chart and reports the outcome.
More...
#include <JcfDownloadView.h>


Instance Methods | |
| (void) | - createStoreBtn: |
A StoreButton factory helper. | |
| (instancetype) | - initWithID:delegate: |
| Builds the board, its label, the three buttons, and the spinner, then starts the download. | |
| (void) | - pushCancel: |
Cancel/End button action: ends the modal through -downloadEnd . | |
| (void) | - pushMoveStore: |
Move-to-store button action: tells the delegate -jcfDownloadMoveStore:packID: . | |
| (void) | - startDownload |
| Adds the full-board progress label showing "downloading". | |
| (void) | - downloadEnd |
Tells the delegate -jcfDownloadEnd: that the modal has finished. | |
| (void) | - errorSequenceDownload:msgStr: |
JcfDownloaderDelegate : the download failed; shows the message and an OK button. | |
| (void) | - finishedSequenceOverCap: |
JcfDownloaderDelegate : the edit-slot cap was reached; shows the cap message and an OK button. | |
| (void) | - finishedSequenceNotExistPack:packID: |
JcfDownloaderDelegate : the tune is not built in and belongs to a purchasable pack; stores the pack id and reveals the move-to-store buttons. | |
| (void) | - finishedSequenceDownload:tuneID: |
JcfDownloaderDelegate : the chart downloaded and saved; stores the tune id and shows the completed message with an OK button. | |
| (int) | - getDownloadMusicID |
| The tune id resolved by a successful download. | |
| Instance Methods inherited from <JcfDownloaderDelegate> | |
| (void) | - finishedSequenceDownload: |
| The follow-up pack lookup finished and the tune is already available. | |
Class Methods | |
| (Class) | + layerClass |
The layer class backing the board: a CAGradientLayer . | |
A gradient-backed board that downloads a .jcf chart and reports the outcome.
| - (void) createStoreBtn: | (nullable id) | sender |
A StoreButton factory helper.
Builds a blue-green rounded StoreButton , but neither stores nor adds it: the binary discards the result, and the sender argument is ignored.
| sender | Ignored. |
| - (void) downloadEnd |
Tells the delegate -jcfDownloadEnd: that the modal has finished.
| - (void) errorSequenceDownload: | (nullable JcfDownloader *) | downloader | |
| msgStr: | (nullable NSString *) | msg |
JcfDownloaderDelegate : the download failed; shows the message and an OK button.
| downloader | The failed downloader. |
| msg | The user-facing message, or nil to use the default failure text. |
Reimplemented from <JcfDownloaderDelegate>.
| - (void) finishedSequenceDownload: | (nullable JcfDownloader *) | downloader | |
| tuneID: | (nullable NSString *) | tuneID |
JcfDownloaderDelegate : the chart downloaded and saved; stores the tune id and shows the completed message with an OK button.
| downloader | The downloader. |
| tuneID | The saved tune id. |
Reimplemented from <JcfDownloaderDelegate>.
| - (void) finishedSequenceNotExistPack: | (nullable JcfDownloader *) | downloader | |
| packID: | (nullable NSString *) | packID |
JcfDownloaderDelegate : the tune is not built in and belongs to a purchasable pack; stores the pack id and reveals the move-to-store buttons.
| downloader | The downloader. |
| packID | The comprised-pack identifier. |
Reimplemented from <JcfDownloaderDelegate>.
| - (void) finishedSequenceOverCap: | (nullable JcfDownloader *) | downloader |
JcfDownloaderDelegate : the edit-slot cap was reached; shows the cap message and an OK button.
| downloader | The downloader. |
Reimplemented from <JcfDownloaderDelegate>.
| - (int) getDownloadMusicID |
The tune id resolved by a successful download.
-1 if none. | - (instancetype) initWithID: | (nullable NSString *) | customID | |
| delegate: | (nullable id< JcfDownloadViewDelegate >) | delegateArg |
Builds the board, its label, the three buttons, and the spinner, then starts the download.
The board is 320 wide on a pad and 300 otherwise, 360 tall either way. The move-to-store (btnOK ) and end (btnEnd ) buttons start fully transparent, flanking the centre; the centred btnCancel is shown while the download runs. The owned JcfDownloader is created and begins immediately.
| customID | The shared chart's custom id, handed to the JcfDownloader . |
| delegateArg | The object told the outcome; held weakly. |
| + (Class) layerClass |
The layer class backing the board: a CAGradientLayer .
CAGradientLayer class. | - (void) pushCancel: | (nullable id) | sender |
Cancel/End button action: ends the modal through -downloadEnd .
| sender | The button. |
| - (void) pushMoveStore: | (nullable id) | sender |
Move-to-store button action: tells the delegate -jcfDownloadMoveStore:packID: .
| sender | The button. |
| - (void) startDownload |
Adds the full-board progress label showing "downloading".
The download itself was already begun by the JcfDownloader built in -initWithID:delegate: , so this only overlays the status label.