1 /* Copyright (c) 2002 - 2003 by iThink Software. All Rights Reserved. */
3 #import "iTunesPlayer.h"
5 @implementation iTunesPlayer
7 static iTunesPlayer *_sharediTunesPlayer = nil;
9 + (id)sharedPlayerForRemote:(iTunesRemote *)remote {
10 if ( _sharediTunesPlayer ) {
12 return _sharediTunesPlayer;
15 return _sharediTunesPlayer = [[iTunesPlayer alloc] init];
27 - (BOOL)setValue:(id)value forProperty:(ITMTGenericProperty)property {
31 - (id)valueOfProperty:(ITMTGenericProperty)property {
32 if ( ( property == ITMTNameProperty ) {
34 } else if ( ( property == ITMTImageProperty ) {
41 - (NSDictionary *)propertiesAndValues {
42 return [NSDictionary dictionaryWithObjectsAndKeys:@"iTunes",@"ITMTNameProperty",nil,@"ITMTImageProperty"];
45 - (ITMTRemote *)remote {
49 - (ITMTPlaylist *)currentPlaylist {
50 // return dynamically from an AE
51 // (ie - [iTunesPlaylist playlistForIndex:<get index from an AE>]
54 - (ITMTTrack *)currentTrack {
55 // return dynamically from an AE
58 - (ITMTEqualizer *)currentEqualizer {
59 // return dynamically from an AE
62 - (NSArray *)playlists {
63 // return dynamically from an AE
67 // return dynamically from an AE
70 - (ITMTPlaylist *)libraryPlaylist {
71 // return dynamically from an AE
74 - (NSArray *)equalizers {
75 // return dynamically from an AE