JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackDetailView.h
Go to the documentation of this file.
1
18
19#import <UIKit/UIKit.h>
20
21#import "AlertViewManager.h"
22#import "Downloader.h"
24
25@class StorePackInfo;
26
27NS_ASSUME_NONNULL_BEGIN
28
33
39@property(nonatomic, strong, nullable) StorePackInfo *packInfo;
40
47@property(nonatomic, weak, nullable) id<StoreDetailViewControllerDelegate> delegate;
48
55@property(nonatomic, weak, nullable) UIViewController *viewController;
56
66- (instancetype)initWithFrame:(CGRect)frame;
67
73- (void)removePackInfo;
74
79- (void)cancelLoading;
80
86- (void)stopSample;
87
94
101- (void)showPackInfo;
102
108- (void)loadInfo;
109
114- (void)loadRestoreInfo;
115
122- (void)doPurchase:(nullable id)sender;
123
130- (void)downloadExtendMusic:(nullable id)sender;
131
139- (void)handleLink:(nullable id)sender;
140
147- (void)handleSample:(nullable id)sender;
148
154- (void)finishBgm:(nullable NSNotification *)notification;
155
162- (void)downloaderFinished:(id)downloader;
163
169- (void)downloaderError:(id)downloader;
170
176- (void)downloaderProceed:(id)downloader;
177
184- (void)alertSelect:(nonnull NSDictionary *)info;
185
191- (void)alertClose:(nonnull NSDictionary *)info;
192
197- (void)detailClose;
198
199@end
200
201NS_ASSUME_NONNULL_END
202
203// code: language=Objective-C
204// kate: hl Objective-C;
205// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The HTTP client.
The store pack-detail page: a header panel over a table of the pack's tunes, with per-row sample play...
A downloaded pack's detail card.
Definition StorePackDetailView.h:32
void updatePurchaseState()
Refreshes the purchase button's colour, title, and enabled state, and shows or hides the extend-downl...
Definition StorePackDetailView.m:442
void loadInfo()
Loads the pack detail: shows it directly when the track list is already present, otherwise starts the...
Definition StorePackDetailView.m:667
void loadRestoreInfo()
Loads the pack detail for a restore: like -loadInfo but fetches the restore endpoint.
Definition StorePackDetailView.m:687
void removePackInfo()
Clears the pack and returns every subview to its empty state, and unsubscribes from the BGM finish no...
Definition StorePackDetailView.m:409
void cancelLoading()
Cancels the in-flight info download, if any.
Definition StorePackDetailView.m:434
void showPackInfo()
Populates the card from the loaded pack: sizes the tune list, fills the labels and artwork,...
Definition StorePackDetailView.m:507
UIViewController * viewController
The controller that owns this card, messaged to close the card and to open iTunes.
Definition StorePackDetailView.h:55
void stopSample()
Stops the sample tune: fades out the BGM, drops the sample downloader, resets every tune view,...
Definition StorePackDetailView.m:830
void detailClose()
Closes any presented alert.
Definition StorePackDetailView.m:958
id< StoreDetailViewControllerDelegate > delegate
The card's delegate, told when to start a purchase, redownload, or extend download.
Definition StorePackDetailView.h:47
StorePackInfo * packInfo
The pack being shown.
Definition StorePackDetailView.h:39
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30