X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/fce120b94a1adc6b9c6e1796217d8065bc105fbb..9234efdd6caadd01f9b28637b44b7f88c42e0cec:/PlaylistNode.h diff --git a/PlaylistNode.h b/PlaylistNode.h new file mode 100644 index 0000000..6ca8c77 --- /dev/null +++ b/PlaylistNode.h @@ -0,0 +1,52 @@ +/* + * MenuTunes + * PlaylistNode + * Helper class for keeping track of sources, playlists and folders + * + * Original Author : Kent Sutherland + * Responsibility : Kent Sutherland + * + * Copyright (c) 2005 iThink Software. + * All Rights Reserved + * + */ + +#import +#import + +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