JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SearchPackIDView.h
Go to the documentation of this file.
1
16
17#import <UIKit/UIKit.h>
18
19#import "Downloader.h"
20
21NS_ASSUME_NONNULL_BEGIN
22
23@class SearchPackIDView;
24@class TuneInfo;
25
33@protocol SearchPackIDViewDelegate <NSObject>
34@optional
39- (void)packIDSearchEnd:(nullable SearchPackIDView *)view;
44- (void)packIDSearchFailed:(nullable SearchPackIDView *)view;
49- (void)packIDSearchCancel:(nullable SearchPackIDView *)view;
50@end
51
56
62+ (Class)layerClass;
63
72- (void)createStoreBtn:(nullable id)sender;
73
83- (BOOL)isBundleMusic:(int)musicID;
84
95- (instancetype)initWithID:(nullable TuneInfo *)music
96 type:(nullable NSString *)type
97 delegate:(nullable id<SearchPackIDViewDelegate>)delegate;
98
112- (instancetype)initWithTuneID:(unsigned int)tuneID
113 type:(nullable NSString *)type
114 delegate:(nullable id<SearchPackIDViewDelegate>)delegate;
115
122- (void)pushCancel:(nullable id)sender;
123
128- (void)startDownload;
129
135- (void)downloaderError:(nullable Downloader *)downloader;
136
143- (void)downloaderFinished:(nullable Downloader *)downloader;
144
149- (void)searchPackFailed;
150
156- (void)notFindPackID;
157
163- (nullable NSNumber *)getPackID;
164
170- (nullable NSString *)getRecommendString;
171
172@end
173
174NS_ASSUME_NONNULL_END
175
176// code: language=Objective-C
177// kate: hl Objective-C;
178// vim: set ft=objc :
The HTTP client.
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