JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MarkerDownloadView.h
Go to the documentation of this file.
1
17
18#import <UIKit/UIKit.h>
19
20#import "AlertViewManager.h"
21#import "Downloader.h"
23#import "StoreDialogView.h"
24
25NS_ASSUME_NONNULL_BEGIN
26
33@protocol MarkerDownloadViewDelegate <NSObject>
34@optional
40@end
41
49
54@property(nonatomic, weak, nullable) id<MarkerDownloadViewDelegate> delegate;
55
59@property(nonatomic, weak, nullable) UIView *parentView;
60
70- (instancetype)init;
71
77- (void)show;
78
83- (void)downloadMarkerList;
84
89- (void)markerDownloadEnd;
90
97
102- (void)markerDownload;
103
110
116- (void)downloaderError:(id)downloader;
117
123- (void)downloaderFinished:(id)downloader;
124
130- (void)listDownloadFailed;
131
137
142- (void)showListSkipAlert;
143
149- (void)alertSelect:(nonnull NSDictionary *)info;
150
155- (void)showModalDialog;
156
161- (void)hideModalDialog;
162
168- (void)storeDialogCancel:(id)dialogView;
169
175- (void)downloadManagerProceed:(MarkerDownloadManager *)manager;
176
182- (void)downloadManagerCompleted:(MarkerDownloadManager *)manager;
183
189- (void)downloadManagerFailed:(nullable MarkerDownloadManager *)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 marker packs in sequence, verifying and installing each.
The store's modal progress panel.
Runs a list of marker download tasks one after another.
Definition MarkerDownloadManager.h:49
A full-screen dimming cover carrying a StoreDialogView download-progress panel.
Definition MarkerDownloadView.h:48
id< MarkerDownloadViewDelegate > delegate
The object told when the marker check ends.
Definition MarkerDownloadView.h:54
void showListSkipAlert()
Presents the confirm-skip alert (tag 1 ).
Definition MarkerDownloadView.m:272
void markerDownloadCancel()
Aborts the check: hides the dialog, cancels the queue, resets the current marker to "mk0026" ,...
Definition MarkerDownloadView.m:142
void showModalDialog()
Fades the cover in and puts the panel into its spinner state.
Definition MarkerDownloadView.m:311
void show()
Starts the marker check: shows the dialog (unless the markers are already legal) and downloads the ma...
Definition MarkerDownloadView.m:118
void downloadMarkerList()
Requests the marker list from the store.
Definition MarkerDownloadView.m:127
UIView * parentView
The view the modal is shown over.
Definition MarkerDownloadView.h:59
void markerDownloadEnd()
Ends the check: hides the dialog and tells the delegate -markerCheckEnd .
Definition MarkerDownloadView.m:134
void listDownloadFailed()
Handles a failed list download: ends the check when the markers are legal, otherwise treats it as a q...
Definition MarkerDownloadView.m:244
instancetype init()
Builds the cover and the progress panel at the screen's size.
Definition MarkerDownloadView.m:80
void markerDownload()
Starts downloading the queued markers, or ends the check when the queue is empty.
Definition MarkerDownloadView.m:154
void hideModalDialog()
Fades the cover out, stops the spinner, and detaches the modal.
Definition MarkerDownloadView.m:335
void showDownloadRetryAlert()
Presents the retry-or-skip alert (tag 2 ).
Definition MarkerDownloadView.m:255
void createMarkerDownloadList()
Builds the download queue by diffing the downloaded marker list against the installed markers,...
Definition MarkerDownloadView.m:167
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30
Told about a marker download queue's progress.
Definition MarkerDownloadManager.h:21
void markerCheckEnd()
Sent once the marker check and download have finished, whether they succeeded, were cancelled,...
What a StoreDialogView tells its owner.
Definition StoreDialogView.h:21