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
--- /dev/null
+//
+// iTunesPlaylist.h
+// MenuTunes
+//
+// Created by Joseph Spiros on Sat Sep 06 2003.
+// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+
+@interface iTunesPlaylist : NSObject {
+
+}
+
+@end
--- /dev/null
+//
+// iTunesPlaylist.m
+// MenuTunes
+//
+// Created by Joseph Spiros on Sat Sep 06 2003.
+// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import "iTunesPlaylist.h"
+
+
+@implementation iTunesPlaylist
+
++ (id)playlistForIndex:(int)index {
+}
+
+@end