1 /****************************************
2 ITMTRemote 1.0 (MenuTunes Remotes)
6 Joseph Spiros <joseph.spiros@ithinksw.com>
8 Copyright (c) 2002 - 2003 by iThink Software.
10 ****************************************/
12 #import <Cocoa/Cocoa.h>
14 #import <ITMTRemote/ITMTRemote.h>
16 @protocol ITMTPlaylist
17 - (BOOL)show; // graphical
19 - (BOOL)setValue:(id)value forProperty:(ITMTGenericProperty)property;
20 - (id)valueOfProperty:(ITMTGenericProperty)property;
21 - (NSDictionary *)propertiesAndValues;
23 - (ITMTPlayer *)player;
25 - (BOOL)addTrack:(ITMTTrack *)track;
26 - (BOOL)insertTrack:(ITMTTrack *)track atIndex:(int)index;
28 - (BOOL)removeTrack:(ITMTTrack *)item;
29 - (BOOL)removeTrackAtIndex:(int)index;
31 - (ITMTTrack *)trackAtIndex:(int)index;
33 - (int)indexOfTrack:(ITMTTrack *)track;
34 - (ITMTTrack *)trackWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatch:(BOOL)partial;
35 - (NSArray *)tracksWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatches:(BOOL)partial;
36 - (int)indexOfTrackWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatch:(BOOL)partial;
37 - (NSArray *)indexesOfTracksWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatches:(BOOL)partial;
40 - (NSArray *)trackArray;
43 @interface ITMTPlaylist : NSObject