1 #import "PlaylistNode.h"
4 @implementation PlaylistNode
6 + (PlaylistNode *)playlistNodeWithName:(NSString *)n type:(ITMTNodeType)t index:(int)i
8 return [[[PlaylistNode alloc] initWithName:n type:t index:i] autorelease];
11 - (id)initWithName:(NSString *)n type:(ITMTNodeType)t index:(int)i
13 if ( (self = [super init]) ) {
31 - (NSString *)description
33 return [NSString stringWithFormat:@"{%@, index: %i, type: %i, parent: %@, children: %@}", _name, _index, _type, [_parent name], _children];
41 - (NSMutableArray *)children
44 _children = [[NSMutableArray alloc] init];
54 - (void)setType:(ITMTNodeType)t
64 - (PlaylistNode *)parent
69 - (void)setParent:(PlaylistNode *)p
75 - (ITMTRemotePlayerSource)sourceType
80 - (void)setSourceType:(ITMTRemotePlayerSource)t