-
Notifications
You must be signed in to change notification settings - Fork 1
/
SPBrowserItem.h
76 lines (54 loc) · 1.84 KB
/
SPBrowserItem.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
#import <Cocoa/Cocoa.h>
@class SPPlaylist;
@interface SPBrowserItem : NSObject
{
BOOL isFolder;
NSString* title;
NSString* author;
NSString* releaseInfo;
NSString* path;
int playTimeInSeconds;
int playTimeMinutes;
int playTimeSeconds;
unsigned short defaultSubTune;
unsigned short subTuneCount;
NSInteger playlistIndex;
NSInteger loopCount;
BOOL fileDoesNotExist;
NSMutableArray* children;
SPBrowserItem* parent;
}
- (id) initWithPath:(NSString*)thePath isFolder:(BOOL)folder forParent:(SPBrowserItem*)parentItem withDefaultSubtune:(NSInteger)subtuneIndex;
- (id) initWithMetaDataItem:(NSMetadataItem*)item;
- (void) addChild:(SPBrowserItem*)item;
- (id) childAtIndex:(int)index;
+ (void) fillArray:(NSMutableArray*)browserItems withDirectoryContentsAtPath:(NSString*)rootPath andParent:(SPBrowserItem*)parentItem;
+ (void) fillArray:(NSMutableArray*)browserItems withMetaDataQueryResults:(NSArray*)results;
+ (void) fillArray:(NSMutableArray*)browserItems withPlaylist:(SPPlaylist*)playlist;
- (BOOL) isFolder;
- (void) setIsFolder:(BOOL)flag;
- (NSString*) title;
- (void) setTitle:(NSString*)newTitle;
- (NSString*) author;
- (void) setAuthor:(NSString*)newAuthor;
- (NSString*) releaseInfo;
- (void) setReleaseInfo:(NSString*)newReleaseInfo;
- (NSString*) path;
- (void) setPath:(NSString*)newPath;
- (int) playTimeInSeconds;
- (void) setPlayTimeInSeconds:(int)seconds;
- (int) playTimeMinutes;
- (int) playTimeSeconds;
- (unsigned short) defaultSubTune;
- (void) setDefaultSubTune:(unsigned short)subtune;
- (unsigned short) subTuneCount;
- (void) setSubTuneCount:(unsigned short)count;
- (NSInteger) playlistIndex;
- (void) setPlaylistIndex:(NSInteger)indexValue;
- (NSInteger) loopCount;
- (void) setLoopCount:(NSInteger)count;
- (BOOL) fileDoesNotExist;
- (BOOL) hasChildren;
- (NSMutableArray*) children;
- (SPBrowserItem*) parent;
@end