A couple more modifications, as well as some comments to ease others'
[MenuTunes.git] / iTunesPlayer.m
1 /* Copyright (c) 2002 - 2003 by iThink Software. All Rights Reserved. */
2
3 #import "iTunesPlayer.h"
4
5 @implementation iTunesPlayer
6
7 static iTunesPlayer *_sharediTunesPlayer = nil;
8
9 + (id)sharedPlayerForRemote:(iTunesRemote *)remote {
10     if ( _sharediTunesPlayer ) {
11         _remote = remote;
12         return _sharediTunesPlayer;
13     } else {
14         _remote = remote;
15         return _sharediTunesPlayer = [[iTunesPlayer alloc] init];
16     }
17 }
18
19 - (BOOL)writable {
20     return NO;
21 }
22
23 - (BOOL)show {
24     return NO;
25 }
26
27 - (BOOL)setValue:(id)value forProperty:(ITMTGenericProperty)property {
28     return NO;
29 }
30
31 - (id)valueOfProperty:(ITMTGenericProperty)property {
32     if ( ( property == ITMTNameProperty ) {
33         return @"iTunes";
34     } else if ( ( property == ITMTImageProperty ) {
35         return nil;
36     } else {
37         return nil;
38     }
39 }
40
41 - (NSDictionary *)propertiesAndValues {
42     return [NSDictionary dictionaryWithObjectsAndKeys:@"iTunes",@"ITMTNameProperty",nil,@"ITMTImageProperty"];
43 }
44
45 - (ITMTRemote *)remote {
46     return _remote;
47 }
48
49 - (ITMTPlaylist *)currentPlaylist {
50     // return dynamically from an AE
51     // (ie - [iTunesPlaylist playlistForIndex:<get index from an AE>]
52 }
53
54 - (ITMTTrack *)currentTrack {
55     // return dynamically from an AE
56 }
57
58 - (ITMTEqualizer *)currentEqualizer {
59     // return dynamically from an AE
60 }
61
62 - (NSArray *)playlists {
63     // return dynamically from an AE
64 }
65
66 - (NSArray *)tracks {
67     // return dynamically from an AE
68 }
69
70 - (ITMTPlaylist *)libraryPlaylist {
71     // return dynamically from an AE
72 }
73
74 - (NSArray *)equalizers {
75     // return dynamically from an AE
76 }
77
78 @end