JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StoreCampaignViewController.h
Go to the documentation of this file.
1
21
22#import <UIKit/UIKit.h>
23
24#import "AlertViewManager.h"
25#import "Downloader.h"
26#import "StoreDialogView.h"
29
31
32NS_ASSUME_NONNULL_BEGIN
33
37@interface StoreCampaignViewController : UIViewController <UITableViewDataSource,
38 UITableViewDelegate,
43
54- (instancetype)initWithParent:(nullable id<StoreParentViewController>)parent;
55
61- (void)loadView;
62
68
76- (UITableViewCell *)tableView:(UITableView *)aTableView
77 cellForRowAtIndexPath:(NSIndexPath *)indexPath;
78
86- (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section;
87
95- (void)tableView:(UITableView *)aTableView
96 willDisplayCell:(UITableViewCell *)cell
97 forRowAtIndexPath:(NSIndexPath *)indexPath;
98
105- (NSInteger)numberOfSectionsInTableView:(UITableView *)aTableView;
106
114- (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
115
121- (void)handleTapCoverView:(nullable UITapGestureRecognizer *)recognizer;
122
128- (void)pushExternalLink:(nullable id)sender;
129
136- (void)selectItem:(int)index;
137
143- (void)pushCellButton:(nullable id)sender;
144
149- (void)moveExternalLink;
150
155- (void)itemDownload;
156
162- (void)displayTerm:(nullable id)sender;
163
168- (void)displayUpdateAlert;
169
176- (void)alertSelect:(NSDictionary *)info;
177
184- (void)downloaderFinished:(id)downloader;
185
191- (void)downloaderError:(id)downloader;
192
199- (void)storeDialogCancel:(id)dialogView;
200
206- (void)downloadManagerStartTask:(StoreDownloadManager *)manager;
207
213- (void)downloadManagerCompleted:(StoreDownloadManager *)manager;
214
220- (void)downloadManagerFailed:(StoreDownloadManager *)manager;
221
228- (void)downloadManagerProceed:(StoreDownloadManager *)manager;
229
234- (void)storeClose;
235
240- (void)reloadUnlockList;
241
248- (nullable UIImage *)getArtwork:(nullable id)info;
249
254- (void)refreshMusicList;
255
261- (void)refreshUnlockTable;
262
267- (void)refreshUnlockBadge;
268
274- (void)setBadgeCnt:(int)count;
275
281
286- (void)viewDidLoad;
287
292- (void)viewDidUnload;
293
299- (void)viewWillAppear:(BOOL)animated;
300
306- (void)viewDidAppear:(BOOL)animated;
307
313- (void)viewWillDisappear:(BOOL)animated;
314
320- (void)viewDidDisappear:(BOOL)animated;
321
328- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
329
335- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
336
342- (BOOL)shouldAutorotate;
343
349- (void)clearArtworkCache;
350
357- (void)downloadImageSync:(nullable NSArray *)arguments;
358
363- (void)itemInfoDownload;
364
369- (void)itemUpdate;
370
375- (void)itemDeselect;
376
381- (void)dealloc;
382
388- (void)initialCampaignID:(NSInteger)campaignID;
389
396- (void)addOpenDetail:(NSInteger)campaignID;
397
398@end
399
400NS_ASSUME_NONNULL_END
401
402// code: language=Objective-C
403// kate: hl Objective-C;
404// vim: set ft=objc :
A shared alert presenter that hides the UIAlertController/UIAlertView split behind one API.
The HTTP client.
The store's modal progress panel.
Downloads a queue of store packs in sequence, verifying, unpacking, and registering each.
The store-parent interface shared by the two store tab controllers.
Lists downloadable campaign items and drives their unlock, download, and detail display.
Definition StoreCampaignViewController.h:42
void itemInfoDownload()
Posts the per-item info request for the working item and starts its Downloader .
Definition StoreCampaignViewController.m:674
void itemUpdate()
Re-evaluates the working item and forwards its new state to the open detail card.
Definition StoreCampaignViewController.m:694
void itemDownload()
Starts the download flow for the working item, branching on its button type.
Definition StoreCampaignViewController.m:623
void refreshMusicList()
Ensures every item's artwork is fetched, then reloads the table.
Definition StoreCampaignViewController.m:1122
void moveExternalLink()
Opens the working row's external link.
Definition StoreCampaignViewController.m:610
void viewDidUnload()
Drops the table view reference when the view is unloaded.
Definition StoreCampaignViewController.m:1310
void viewDidLoad()
Makes the navigation bar and its subviews exclusive-touch.
Definition StoreCampaignViewController.m:1301
void didReceiveMemoryWarning()
Chains to super; the override adds nothing of its own.
Definition StoreCampaignViewController.m:1296
void downloadCampaignList()
Posts the campaign-list request and starts its Downloader .
Definition StoreCampaignViewController.m:326
void reloadUnlockList()
Rebuilds the unlock table and refreshes the music list.
Definition StoreCampaignViewController.m:1116
void dealloc()
Empties the artwork cache and detaches its delegate.
Definition StoreCampaignViewController.m:345
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen supports.
Definition StoreCampaignViewController.m:1347
void itemDeselect()
Clears the working row and the detail-open flag.
Definition StoreCampaignViewController.m:585
void loadView()
Builds the view: a full-bounds vertical gradient, a non-selectable table, a loading overlay,...
Definition StoreCampaignViewController.m:250
BOOL shouldAutorotate()
Whether the screen rotates.
Definition StoreCampaignViewController.m:1353
void refreshUnlockBadge()
Recomputes the tab badge count from the newly-unlocked items.
Definition StoreCampaignViewController.m:1173
void clearArtworkCache()
Empties the artwork cache, cancels every pending download operation, and clears the in-flight list.
Definition StoreCampaignViewController.m:1287
void displayUpdateAlert()
Shows the "an app update is required to unlock this tune" alert.
Definition StoreCampaignViewController.m:719
void refreshUnlockTable()
Rebuilds the displayed item list from the server unlock-check list, deduplicating by campaign and hon...
Definition StoreCampaignViewController.m:1130
void storeClose()
Closes any open alert.
Definition StoreCampaignViewController.m:1109
Runs a list of store download tasks one after another, verifying each pack's trailing MD5 digest,...
Definition StoreDownloadManager.h:49
The store's root tab container and shared purchase, download, and agreement coordinator.
Definition StoreViewController.h:52
The optional delegate of AlertViewManager.
Definition AlertViewManager.h:18
Performs a single HTTP request.
Definition Downloader.h:30
What a StoreDialogView tells its owner.
Definition StoreDialogView.h:21
Told about a store download queue's progress.
Definition StoreDownloadManager.h:20