3 @implementation ITMTRemote
10 - (NSString *)remoteTitle
15 - (NSString *)remoteInformation
20 - (NSImage *)remoteIcon
25 - (NSString *)sharedRemoteName
27 NSString *name = [[NSUserDefaults standardUserDefaults] stringForKey:@"sharedPlayerName"];
29 name = @"MenuTunes Shared Player";
43 - (NSString *)playerFullName
48 - (NSString *)playerSimpleName
53 - (NSDictionary *)capabilities
55 return [NSDictionary dictionaryWithObjectsAndKeys:
56 [NSNumber numberWithBool: NO], @"Remote", // Set this to YES for a valid remote, otherwise the remote will be unusable.
57 [NSNumber numberWithBool: NO], @"Basic Track Control",
58 [NSNumber numberWithBool: NO], @"Track Information",
59 [NSNumber numberWithBool: NO], @"Track Navigation",
60 [NSNumber numberWithBool: NO], @"Upcoming Songs",
61 [NSNumber numberWithBool: NO], @"Playlists",
62 [NSNumber numberWithBool: NO], @"Volume",
63 [NSNumber numberWithBool: NO], @"Shuffle",
64 [NSNumber numberWithBool: NO], @"Repeat Modes",
65 [NSNumber numberWithBool: NO], @"Equalizer",
66 [NSNumber numberWithBool: NO], @"Track Rating",
70 - (BOOL)showPrimaryInterface
75 - (ITMTRemotePlayerRunningState)playerRunningState
80 - (ITMTRemotePlayerPlayingState)playerPlayingState
85 - (NSArray *)playlists
90 - (int)numberOfSongsInPlaylistAtIndex:(int)index
95 - (ITMTRemotePlayerSource)currentSource
100 - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass
105 - (int)currentPlaylistIndex
110 - (NSString *)songTitleAtIndex:(int)index
115 - (int)currentAlbumTrackCount
120 - (int)currentSongTrack
125 - (NSString *)playerStateUniqueIdentifier
130 - (int)currentSongIndex
135 - (NSString *)currentSongTitle
140 - (NSString *)currentSongArtist
145 - (NSString *)currentSongAlbum
150 - (NSString *)currentSongGenre
155 - (NSString *)currentSongLength
160 - (NSString *)currentSongRemaining
165 - (NSString *)currentSongElapsed
170 - (NSImage *)currentSongAlbumArt
175 - (float)currentSongRating
180 - (BOOL)setCurrentSongRating:(float)rating
185 /* - (BOOL)equalizerEnabled
190 - (BOOL)setEqualizerEnabled:(BOOL)enabled
195 - (NSArray *)eqPresets
200 - (int)currentEQPresetIndex
210 - (BOOL)setVolume:(float)volume
215 - (BOOL)shuffleEnabled
220 - (BOOL)setShuffleEnabled:(BOOL)enabled
225 - (ITMTRemotePlayerRepeatMode)repeatMode
227 return ITMTRemotePlayerRepeatOff;
230 - (BOOL)setRepeatMode:(ITMTRemotePlayerRepeatMode)repeatMode
250 - (BOOL)goToPreviousSong
265 - (BOOL)switchToPlaylistAtIndex:(int)index
270 - (BOOL)switchToSongAtIndex:(int)index
275 - (BOOL)switchToEQAtIndex:(int)index