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
19 - (BOOL)show; // graphical
21 - (BOOL)setValue:(id)value forProperty:(ITMTGenericProperty)property;
22 - (id)valueOfProperty:(ITMTGenericProperty)property;
23 - (NSDictionary *)propertiesAndValues;
25 - (ITMTPlayer *)player;
27 - (BOOL)addTrack:(ITMTTrack *)track;
28 - (BOOL)insertTrack:(ITMTTrack *)track atIndex:(int)index;
30 - (BOOL)removeTrack:(ITMTTrack *)item;
31 - (BOOL)removeTrackAtIndex:(int)index;
33 - (ITMTTrack *)trackAtIndex:(int)index;
35 - (int)indexOfTrack:(ITMTTrack *)track;
36 - (ITMTTrack *)trackWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatch:(BOOL)partial;
37 - (NSArray *)tracksWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatches:(BOOL)partial;
38 - (int)indexOfTrackWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatch:(BOOL)partial;
39 - (NSArray *)indexesOfTracksWithProperty:(ITMTTrackProperty)property ofValue:(id)value allowPartialMatches:(BOOL)partial;
42 - (NSArray *)trackArray;
45 @interface ITMTPlaylist : NSObject