JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MissionRewardDownloadView.h
Go to the documentation of this file.
1
22
23#import <UIKit/UIKit.h>
24
25#import "AlertViewManager.h"
26#import "Downloader.h"
28
30@class Downloader;
31@class StoreDialogView;
33
34NS_ASSUME_NONNULL_BEGIN
35
39// clang-format off
40// One protocol per line: the packed form, which begins a continuation line with ": UIView <", is
41// read by Doxygen as undocumented ivars named after the trailing protocols.
45// clang-format on
46
55@property(nonatomic, weak, nullable) id aDelegate;
56
64- (instancetype)initWithFrame:(CGRect)frame;
65
75- (BOOL)checkItemDownload;
76
84- (void)setMissionInfo:(nullable ChallengeMissionReward *)reward
85 enableDownload:(BOOL)enableDownload;
86
93- (void)tapCloseBtn:(nullable id)sender;
94
100- (void)tapSample;
101
106- (void)sampleWait;
107
112- (void)tapDownload;
113
119- (void)downloaderFinished:(nullable Downloader *)downloader;
120
127- (void)downloaderError:(nullable Downloader *)downloader;
128
134- (void)downloaderProceed:(nullable Downloader *)downloader;
135
141- (void)storeDialogCancel:(nullable StoreDialogView *)dialogView;
142
147- (void)showDialog;
148
153- (void)hideDialog;
154
160- (void)alertSelect:(nullable NSDictionary *)info;
161
167- (void)downloadManagerStartTask:(nullable StoreDownloadManager *)manager;
168
175- (void)downloadManagerCompleted:(nullable StoreDownloadManager *)manager;
176
182- (void)downloadManagerFailed:(nullable StoreDownloadManager *)manager;
183
189- (void)downloadManagerProceed:(nullable StoreDownloadManager *)manager;
190
191@end
192
193NS_ASSUME_NONNULL_END
194
195// code: language=Objective-C
196// kate: hl Objective-C;
197// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The HTTP client.
Downloads a queue of store packs in sequence, verifying, unpacking, and registering each.
A challenge-mission reward, as sent by the server.
Definition ChallengeMissionReward.h:26
A one-shot HTTP request that reports its result to a delegate.
Definition Downloader.h:52
A challenge-mission reward-item download overlay.
Definition MissionRewardDownloadView.h:44
id aDelegate
The overlay's owner, told when the window is closed.
Definition MissionRewardDownloadView.h:55
void tapSample()
The sample button's action: downloads the sample-tune metadata, or toggles playback of an already-loa...
Definition MissionRewardDownloadView.m:402
void showDialog()
Fades the progress dialog in.
Definition MissionRewardDownloadView.m:708
void hideDialog()
Plays a sound effect and fades the progress dialog out.
Definition MissionRewardDownloadView.m:727
void sampleWait()
Timer callback that starts sample playback once the loading delay elapses.
Definition MissionRewardDownloadView.m:427
void tapDownload()
The download button's action: posts the reward id and begins the metadata fetch.
Definition MissionRewardDownloadView.m:438
BOOL checkItemDownload()
Reports whether the reward item is already present on disk.
Definition MissionRewardDownloadView.m:314
A rounded panel with a spinner, a one-line message, a progress bar and an abort button.
Definition StoreDialogView.h:37
Runs a list of store download tasks one after another, verifying each pack's trailing MD5 digest,...
Definition StoreDownloadManager.h:49
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30
Told about a store download queue's progress.
Definition StoreDownloadManager.h:20