Fixed the state for the playlists menu item to show the currently playing playlist.
[MenuTunes.git] / PlaylistNode.h
1 /*
2  *      MenuTunes
3  *  PlaylistNode
4  *    Helper class for keeping track of sources, playlists and folders
5  *
6  *  Original Author : Kent Sutherland <ksuther@ithinksw.com>
7  *   Responsibility : Kent Sutherland <ksuther@ithinksw.com>
8  *
9  *  Copyright (c) 2005 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13  
14 #import <Cocoa/Cocoa.h>
15 #import <ITMTRemote/ITMTRemote.h>
16
17 typedef enum {
18     ITMTSourceNode = -1,
19         ITMTPlaylistNode,
20     ITMTFolderNode,
21         ITMTPartyShuffleNode,
22         ITMTPodcastsNode,
23         ITMTPurchasedMusicNode,
24         ITMTVideosNode
25 } ITMTNodeType;
26
27 @interface PlaylistNode : NSObject
28 {
29         NSString *_name;
30         ITMTNodeType _type;
31         ITMTRemotePlayerSource _sourceType;
32         NSMutableArray *_children;
33         PlaylistNode *_parent;
34         int _index;
35 }
36 + (PlaylistNode *)playlistNodeWithName:(NSString *)n type:(ITMTNodeType)t index:(int)i;
37
38 - (id)initWithName:(NSString *)n type:(ITMTNodeType)t index:(int)i;
39
40 - (NSString *)name;
41 - (NSMutableArray *)children;
42 - (int)index;
43
44 - (void)setType:(ITMTNodeType)t;
45 - (ITMTNodeType)type;
46
47 - (PlaylistNode *)parent;
48 - (void)setParent:(PlaylistNode *)p;
49
50 - (ITMTRemotePlayerSource)sourceType;
51 - (void)setSourceType:(ITMTRemotePlayerSource)t;
52 @end