-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSPBrowserItem.h
More file actions
67 lines (45 loc) · 2.06 KB
/
Copy pathSPBrowserItem.h
File metadata and controls
67 lines (45 loc) · 2.06 KB
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
#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;
}
- (instancetype) initWithPath:(NSString*)thePath isFolder:(BOOL)folder forParent:(SPBrowserItem*)parentItem withDefaultSubtune:(NSInteger)subtuneIndex NS_DESIGNATED_INITIALIZER;
- (instancetype) initWithMetaDataItem:(NSMetadataItem*)item NS_DESIGNATED_INITIALIZER;
- (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;
@property (NS_NONATOMIC_IOSONLY) BOOL isFolder;
@property (NS_NONATOMIC_IOSONLY, copy) NSString *title;
@property (NS_NONATOMIC_IOSONLY, copy) NSString *author;
@property (NS_NONATOMIC_IOSONLY, copy) NSString *releaseInfo;
@property (NS_NONATOMIC_IOSONLY, copy) NSString *path;
@property (NS_NONATOMIC_IOSONLY) int playTimeInSeconds;
@property (NS_NONATOMIC_IOSONLY, readonly) int playTimeMinutes;
@property (NS_NONATOMIC_IOSONLY, readonly) int playTimeSeconds;
- (unsigned short) defaultSubTune;
- (void) setDefaultSubTune:(unsigned short)subtune;
@property (NS_NONATOMIC_IOSONLY) unsigned short subTuneCount;
@property (NS_NONATOMIC_IOSONLY) NSInteger playlistIndex;
@property (NS_NONATOMIC_IOSONLY) NSInteger loopCount;
@property (NS_NONATOMIC_IOSONLY, readonly) BOOL fileDoesNotExist;
@property (NS_NONATOMIC_IOSONLY, readonly) BOOL hasChildren;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSMutableArray *children;
@property (NS_NONATOMIC_IOSONLY, readonly, strong) SPBrowserItem *parent;
@end