-
Notifications
You must be signed in to change notification settings - Fork 1
/
PlaylistNode.h
49 lines (41 loc) · 1009 Bytes
/
PlaylistNode.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
/*
* MenuTunes
* PlaylistNode.h
*
* Helper class for keeping track of sources, playlists and folders.
*
* Copyright (c) 2005 iThink Software
*
*/
#import <Cocoa/Cocoa.h>
#import <ITMTRemote/ITMTRemote.h>
typedef enum {
ITMTSourceNode = -1,
ITMTPlaylistNode,
ITMTFolderNode,
ITMTPartyShuffleNode,
ITMTPodcastsNode,
ITMTPurchasedMusicNode,
ITMTVideosNode
} ITMTNodeType;
@interface PlaylistNode : NSObject
{
NSString *_name;
ITMTNodeType _type;
ITMTRemotePlayerSource _sourceType;
NSMutableArray *_children;
PlaylistNode *_parent;
int _index;
}
+ (PlaylistNode *)playlistNodeWithName:(NSString *)n type:(ITMTNodeType)t index:(int)i;
- (id)initWithName:(NSString *)n type:(ITMTNodeType)t index:(int)i;
- (NSString *)name;
- (NSMutableArray *)children;
- (int)index;
- (void)setType:(ITMTNodeType)t;
- (ITMTNodeType)type;
- (PlaylistNode *)parent;
- (void)setParent:(PlaylistNode *)p;
- (ITMTRemotePlayerSource)sourceType;
- (void)setSourceType:(ITMTRemotePlayerSource)t;
@end