17#import <UIKit/UIKit.h>
21NS_ASSUME_NONNULL_BEGIN
33@protocol SearchPackIDViewDelegate <NSObject>
72- (void)createStoreBtn:(nullable
id)sender;
83- (BOOL)isBundleMusic:(
int)musicID;
95- (instancetype)initWithID:(nullable
TuneInfo *)music
96 type:(nullable NSString *)type
97 delegate:(nullable
id<SearchPackIDViewDelegate>)delegate;
112- (instancetype)initWithTuneID:(
unsigned int)tuneID
113 type:(nullable NSString *)type
114 delegate:(nullable
id<SearchPackIDViewDelegate>)delegate;
122- (void)pushCancel:(nullable
id)sender;
135- (void)downloaderError:(nullable
Downloader *)downloader;
143- (void)downloaderFinished:(nullable
Downloader *)downloader;
A one-shot HTTP request that reports its result to a delegate.
Definition Downloader.h:52
A gradient-backed board that resolves the pack owning a tune and reports the outcome.
Definition SearchPackIDView.h:55
nullable NSString * getRecommendString()
The recommend/message string the lookup returned.
Definition SearchPackIDView.m:394
void startDownload()
Overlays the full-board progress label and starts the pack-lookup download.
Definition SearchPackIDView.m:351
nullable NSNumber * getPackID()
The pack id resolved by the lookup.
Definition SearchPackIDView.m:389
Class layerClass()
The layer class backing the board: a CAGradientLayer .
Definition SearchPackIDView.m:122
void notFindPackID()
Shows the no-pack message, retitles the button Close, and tells the delegate -packIDSearchFailed: .
Definition SearchPackIDView.m:376
void searchPackFailed()
Shows the download-failed message and retitles the button Close.
Definition SearchPackIDView.m:366
A tune, its three difficulty levels, and how it sorts.
Definition TuneInfo.h:20
Performs a single HTTP request.
Definition Downloader.h:30