A couple more modifications, as well as some comments to ease others'
[MenuTunes.git] / iTunesPlayer.m
index 6a7b08b..cb6eb94 100755 (executable)
@@ -6,12 +6,73 @@
 
 static iTunesPlayer *_sharediTunesPlayer = nil;
 
-+ (id)sharedPlayer {
++ (id)sharedPlayerForRemote:(iTunesRemote *)remote {
     if ( _sharediTunesPlayer ) {
+        _remote = remote;
         return _sharediTunesPlayer;
     } else {
+        _remote = remote;
         return _sharediTunesPlayer = [[iTunesPlayer alloc] init];
     }
 }
 
+- (BOOL)writable {
+    return NO;
+}
+
+- (BOOL)show {
+    return NO;
+}
+
+- (BOOL)setValue:(id)value forProperty:(ITMTGenericProperty)property {
+    return NO;
+}
+
+- (id)valueOfProperty:(ITMTGenericProperty)property {
+    if ( ( property == ITMTNameProperty ) {
+        return @"iTunes";
+    } else if ( ( property == ITMTImageProperty ) {
+        return nil;
+    } else {
+        return nil;
+    }
+}
+
+- (NSDictionary *)propertiesAndValues {
+    return [NSDictionary dictionaryWithObjectsAndKeys:@"iTunes",@"ITMTNameProperty",nil,@"ITMTImageProperty"];
+}
+
+- (ITMTRemote *)remote {
+    return _remote;
+}
+
+- (ITMTPlaylist *)currentPlaylist {
+    // return dynamically from an AE
+    // (ie - [iTunesPlaylist playlistForIndex:<get index from an AE>]
+}
+
+- (ITMTTrack *)currentTrack {
+    // return dynamically from an AE
+}
+
+- (ITMTEqualizer *)currentEqualizer {
+    // return dynamically from an AE
+}
+
+- (NSArray *)playlists {
+    // return dynamically from an AE
+}
+
+- (NSArray *)tracks {
+    // return dynamically from an AE
+}
+
+- (ITMTPlaylist *)libraryPlaylist {
+    // return dynamically from an AE
+}
+
+- (NSArray *)equalizers {
+    // return dynamically from an AE
+}
+
 @end