-
Notifications
You must be signed in to change notification settings - Fork 0
/
Music.h
71 lines (64 loc) · 1.98 KB
/
Music.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
#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import "Cache.h"
#import "HttpDelegate.h"
#import "CustomSpinningGearView.h"
@interface MusicFileEntry: NSObject
{
@public
NSString *name;
NSString *title;
NSString *album;
NSString *artist;
NSString *year;
NSString *genre;
NSString *path;
int duration;
NSMutableArray *trackEntries;
NSMutableArray *albumEntries;
NSMutableArray *children;
int type;
}
@end
@interface Music: NSObject
{
BOOL stopFlag;
Cache *resourceCache;
NSMutableArray *trackEntries, *albumEntries, *artistEntries;
NSMutableArray *downloadEntries, *allDownloadEntries;
NSMutableArray *playlistsEntries, *recordingEntries;
CustomSpinningGearView *spinningGear;
NSString *ROOT_CONTAINER;
NSString *_ROOT_CONTAINER;
NSString *_DOWNLOADS;
NSString *DOWNLOADS;
NSString *_RECORDINGS;
NSString *RECORDINGS;
NSString *_PLAYLISTS;
NSString *PLAYLISTS;
NSString *DOWNLOADS_PATH;
NSString *PLAYLISTS_PATH;
NSString *ITUNES_PATH;
NSString *ITUNES_ALBUM_PATH;
NSString *ITUNES_ARTIST_PATH;
NSString *ITUNES_SONG_PATH;
NSString *ITUNES_PLAYLIST_PATH;
NSString *ITUNES_FS_PATH;
NSString *PWNPLAYER_PATH;
NSString *RECORDINGS_PATH;
}
-(void)setRootContainer:(NSString*)root;
-(void)setResourceCache: (Cache*)cache;
-(void)setSpinningGearView: (CustomSpinningGearView *)view;
-(void)LoadMusicEntries;
-(void)QueryItem: (NSString*)url;
-(void)QueryContainer: (NSString*)symbolicPath itemCount:(int)itemCount
anchorItem:(NSString*)anchor anchorOffset:(int)anchorOffset
recursive:(BOOL)recurse sortOrder:(NSString*)sortOrder
randomSeed:(int)randomSeed randomStart:(NSString*)randomStart
filter:(NSString*)filter httpDelegate:(id)delegate;
-(BOOL)isMusicFilePrefix:(NSString*)path;
-(void)SendFile: (NSString *)path httpDelegate:(id)delegate;
-(NSString*)TranslateSymbolicPath: (NSString*)symbolicPath;
-(NSMutableArray*)ListDownloads: (NSString*)path recursive:(BOOL)recurse;
@end