-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShowSongMetadataHeader.h
296 lines (236 loc) · 8.27 KB
/
ShowSongMetadataHeader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
/*
* ShowSongMetadata
* ShowSongMetadataHeader.h
*
* 2015 Kye Wei
*/
#import <AVFoundation/AVAsset.h>
#import <AVFoundation/AVAssetTrack.h>
#import <AudioToolbox/AudioToolbox.h>
#import <UIKit/UIKit.h>
#import <substrate.h>
#import <UIKit/UIViewController.h>
@protocol MusicEntityValueProviding
@end
@interface MPMediaQuery : NSObject
@property (nonatomic,readonly) NSArray * items;
@property (nonatomic,readonly) NSArray * collections;
@property (nonatomic,readonly) NSArray * itemSections;
@property (nonatomic,readonly) NSArray * collectionSections;
-(int)groupingType;
@end
@interface MPUDataSource : NSObject
@end
@interface MPUQueryDataSource : MPUDataSource
@end
@interface MPUCompletionQueryDataSource : MPUQueryDataSource
@end
@interface MusicQueryDataSource : MPUCompletionQueryDataSource {
MPMediaQuery* _query;
}
- (id)entities;
@end
@interface MusicArtistAlbumsDataSource : MusicQueryDataSource {
NSArray *_sectionEntities;
}
- (id)sectionEntities;
@end
@interface MusicSongsDataSource : MusicQueryDataSource
@end
@interface MPUSearchDataSource : MPUQueryDataSource
@property (nonatomic,readonly) MPMediaQuery * query;
-(MPMediaQuery *)query;
@end
@interface MusicMediaQueryDataSource : MPUQueryDataSource
@end
@interface MusicProfileAlbumsDataSource : MusicMediaQueryDataSource {
NSArray *_sectionEntities;
}
- (id)sectionEntities;
@end
@interface MPMediaEntity : NSObject <MusicEntityValueProviding>
@end
@interface MPMediaItem : MPMediaEntity
@property (nonatomic,readonly) NSString * title;
@property (nonatomic,readonly) NSString * albumTitle;
@property (nonatomic,readonly) NSString * artist;
@property (nonatomic,readonly) NSString * albumArtist;
@property (nonatomic,readonly) NSString * genre;
@property (nonatomic,readonly) NSString * composer;
@property (nonatomic,readonly) NSString * comments;
@property (nonatomic,readonly) NSDate * releaseDate;
@property (nonatomic,readonly) double playbackDuration;
@property (nonatomic,readonly) unsigned long long albumTrackNumber;
@property (nonatomic,readonly) unsigned long long albumTrackCount;
@property (nonatomic,readonly) unsigned long long discNumber;
@property (nonatomic,readonly) unsigned long long discCount;
@property (nonatomic,readonly) unsigned long long playCount;
@property (nonatomic,readonly) unsigned long long skipCount;
@property (nonatomic,readonly) unsigned long long year;
@property (nonatomic,readonly) unsigned long long rating;
@property (nonatomic,copy) NSDate * lastPlayedDate;
@property (nonatomic,copy) NSDate * lastSkippedDate;
@property (assign,nonatomic) unsigned long long playCountSinceSync;
@property (assign,nonatomic) unsigned long long skipCountSinceSync;
@property (nonatomic,readonly) NSURL * assetURL;
@end
@interface MPConcreteMediaItem : MPMediaItem
@end
@interface MPMediaItemCollection : MPMediaEntity
@end
@interface MPConcreteMediaItemCollection : MPMediaItemCollection
- (id)items;
@end
@interface MPAVItem : NSObject {
MPMediaItem* _mediaItem;
}
@property (nonatomic,retain,readonly) MPMediaItem * mediaItem;
- (id) mediaItem;
@end
@interface MusicQueryNowPlayingItem : MPAVItem
@end
@interface MusicCoalescingEntityValueProvider {
id *_baseEntityValueProvider;
}
//@property (nonatomic, retain) id *baseEntityValueProvider;
- (id)baseEntityValueProvider;
@end
@interface MusicMediaEntityProvider {
MusicMediaQueryDataSource *_mediaQueryDataSource;
}
@property (nonatomic, readonly) MusicMediaQueryDataSource *mediaQueryDataSource;
- (id)mediaQueryDataSource;
@end
@protocol MusicTableViewDelegate <UITableViewDelegate>
@end
@interface MusicTableView : UITableView {
NSMutableDictionary *_cellClassDict;
}
@property (assign,nonatomic) id/*<MusicTableViewDelegate>*/ delegate;
@end
@interface UISearchResultsTableView : UITableView
@property (assign,nonatomic) id/*<MusicSearchTableViewDelegate>*/ delegate;
@end
@interface MusicSearchTableView : UISearchResultsTableView
@end
@interface MPUDataSourceViewController : UIViewController
@end
@interface MPUTableViewController : MPUDataSourceViewController
@end
@interface MusicTableViewController : MPUTableViewController
@property (weak) id /*<MusicTableViewControllerDelegate>*/ delegate;
@property (weak) id /*<MusicTableViewControllerDelegate>*/ dataSource; //I know this exists so...
@end
@interface MusicAlbumsDetailViewController : MusicTableViewController <MusicTableViewDelegate>
@end
@interface MusicSongsViewController : MusicTableViewController <MusicTableViewDelegate>
@end
@interface UITableViewCellDetailDisclosureView : UIControl {
UIButton *_infoButton;
}
@property(retain) UIButton *infoButton;
@end
@interface MusicSearchViewController : UIViewController
@property (weak) id /*<MusicSearchViewControllerDelegate>*/ delegate;
@property (weak) id /*<MusicSearchViewControllerDelegate>*/ dataSource; //I know this exists so...
@end
@interface MusicLibraryBrowseTableViewController: UIViewController
-(void)addButtonsToTableCells;
- (MusicTableView *) tableView;
@end
@interface MusicProductTracklistTableViewController: MusicLibraryBrowseTableViewController
@end
@interface MusicProfileAlbumsViewController : MusicProductTracklistTableViewController
@end
@interface MusicTableViewCell : UITableViewCell
- (void) displayPopup: (UIButton*) sender;
- (id) getMediaItem:(UITableViewCell*)cell; // To get rid of compiler warnings
@end
@interface MusicMediaTableViewCell : MusicTableViewCell
@end
@interface MusicCollectionTrackTableViewCell : MusicMediaTableViewCell {
//UIControl *_accessoryView;
}
@property(retain, nonatomic) UIView *accessoryView;
- (id) getMediaItem:(UITableViewCell*)cell;
@end
@interface MusicStandardMediaTableViewCell : MusicMediaTableViewCell
@end
@interface MusicSongListTableViewCell : MusicStandardMediaTableViewCell
- (int) rowsBeforeSection:(int)section inTable:(UITableView*)tableView;
@end
@interface MusicSearchTableViewCell : MusicSongListTableViewCell
- (id) getMediaItem:(UITableViewCell*)cell;
@end
@interface MusicEntityTracklistItemTableViewCell : UITableViewCell
//@property (nonatomic, retain) <MusicEntityValueProviding> *entityValueProvider;
- (id)entityValueProvider;
- (id) getMediaItem:(UITableViewCell*)cell;
- (void) displayPopup: (UIButton*) sender;
@end
@interface MusicEntityHorizontalLockupTableViewCell : UITableViewCell
- (id)entityValueProvider;
- (id) getMediaItem:(UITableViewCell*)cell;
- (void) displayPopup: (UIButton*) sender;
@end
/*@interface MusicActionTableViewCell : MusicTableViewCell
- (id)initWithStyle:(int)arg1 reuseIdentifier:(id)arg2;
@end;*/
@interface NSDate (KWExtensions)
// I know this exists too, I used it
- (id)dateWithCalendarFormat:(NSString *)formatString timeZone:(NSTimeZone *)timeZone;
@end
@interface MPUTextDrawingView : UIView
@property (nonatomic, readonly) NSString *text;
- (NSString *)text;
@end
@interface MusicNowPlayingFloatingButton: UIButton {
UIImageView *_glyphImageView;
}
//@property (nonatomic, retain) UIImage *glyphImage;
- (id)glyphImage;
- (int)effect;
- (void)setEffect:(int)arg1;
- (void)setGlyphImage:(id)arg1;
- (void)setGlyphImageOffset:(struct UIOffset)arg1;
- (id)initWithFrame:(CGRect)arg1;
@end
@interface MusicNowPlayingViewController : UIViewController {
MPAVItem* _item;
//UINavigationItem* _navigationItem;
}
@property (nonatomic,retain,readonly) UINavigationItem * navigationItem;
- (BOOL)isLoaded;
- (void)setLoaded:(BOOL)value;
- (float)titleWidthGap;
- (void)setTitleWidthGap:(float)value;
-(UINavigationItem *)navigationItem;
-(void)viewDidLoad;
-(void)viewDidAppear:(BOOL)animated;
-(void)viewDidDisappear:(BOOL)animated;
-(void)didMoveToWindow;
-(void) addButtonToView;
- (id) getMediaItem:(UIViewController*)view;
-(void) displayPopup: (UIButton*) sender;
- (MusicNowPlayingFloatingButton *)metadataButton;
- (void)setMetadataButton:(UIButton *)button;
@end
@interface MPUNowPlayingTitlesView : UIView
@property(nonatomic) CGRect frame;
-(id)initWithFrame:(CGRect)arg1 ;
@end
@interface MusicNowPlayingPlaybackControlsView : UIView {
UIView* _titlesView;
}
//- (AudioFileID) getAudioFileID:(ExtAudioFileRef)fileRef;
//- (UInt32) getBitRate:(AudioFileID)audioFileId;
//- (id) getMediaItem:(UIView*)view;
//-(void) displayPopup: (UIButton*) sender;
@property(nonatomic) CGRect frame;
@property (assign,nonatomic) id delegate;
-(void)reloadView;
-(id)initWithFrame:(CGRect)arg1 ;
@end
@interface UINavigationItem (KWExtensions)
-(id)navigationBar;
@end