3 @implementation ITMTRemote
10 - (NSString *)remoteTitle
15 - (NSString *)remoteInformation
20 - (NSImage *)remoteIcon
35 - (NSString *)playerFullName
40 - (NSString *)playerSimpleName
45 - (NSDictionary *)capabilities
47 return [NSDictionary dictionaryWithObjectsAndKeys:
48 [NSNumber numberWithBool: NO], @"Remote", // Set this to YES for a valid remote, otherwise the remote will be unusable.
49 [NSNumber numberWithBool: NO], @"Basic Track Control",
50 [NSNumber numberWithBool: NO], @"Track Information",
51 [NSNumber numberWithBool: NO], @"Track Navigation",
52 [NSNumber numberWithBool: NO], @"Upcoming Songs",
53 [NSNumber numberWithBool: NO], @"Playlists",
54 [NSNumber numberWithBool: NO], @"Volume",
55 [NSNumber numberWithBool: NO], @"Shuffle",
56 [NSNumber numberWithBool: NO], @"Repeat Modes",
57 [NSNumber numberWithBool: NO], @"Equalizer",
58 [NSNumber numberWithBool: NO], @"Track Rating",
62 - (BOOL)showPrimaryInterface
67 - (ITMTRemotePlayerRunningState)playerRunningState
69 return ITMTRemotePlayerNotRunning;
72 - (ITMTRemotePlayerPlayingState)playerPlayingState
74 return ITMTRemotePlayerStopped;
77 - (NSArray *)playlists
92 - (int)numberOfSources
97 - (int)numberOfSongsInPlaylistAtIndex:(int)index
102 - (ITMTRemotePlayerSource)currentSource
104 return ITMTRemoteLibrarySource;
107 - (int)currentSourceIndex
112 - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass
114 return ITMTRemotePlayerLibraryPlaylist;
117 - (int)currentPlaylistIndex
122 - (NSString *)songTitleAtIndex:(int)index
127 - (BOOL)songEnabledAtIndex:(int)index
132 - (int)currentAlbumTrackCount
137 - (int)currentSongTrack
142 - (NSString *)playerStateUniqueIdentifier
147 - (int)currentSongIndex
152 - (NSString *)currentSongTitle
157 - (NSString *)currentSongArtist
162 - (NSString *)currentSongComposer
167 - (NSString *)currentSongAlbum
172 - (NSString *)currentSongGenre
177 - (NSString *)currentSongLength
182 - (int)currentSongPlayed
187 - (int)currentSongDuration
192 - (NSString *)currentSongRemaining
197 - (NSString *)currentSongElapsed
202 - (NSImage *)currentSongAlbumArt
207 - (int)currentSongPlayCount
212 - (float)currentSongRating
217 - (BOOL)setCurrentSongRating:(float)rating
222 - (BOOL)currentSongShufflable
227 - (BOOL)setCurrentSongShufflable:(BOOL)shufflable
232 - (BOOL)equalizerEnabled
237 - (BOOL)setEqualizerEnabled:(BOOL)enabled
242 - (NSArray *)eqPresets
247 - (int)currentEQPresetIndex
257 - (BOOL)setVolume:(float)volume
262 - (BOOL)shuffleEnabled
267 - (BOOL)setShuffleEnabled:(BOOL)enabled
272 - (ITMTRemotePlayerRepeatMode)repeatMode
274 return ITMTRemotePlayerRepeatOff;
277 - (BOOL)setRepeatMode:(ITMTRemotePlayerRepeatMode)repeatMode
297 - (BOOL)goToPreviousSong
312 - (BOOL)switchToPlaylistAtIndex:(int)index
317 - (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2
322 - (BOOL)switchToSongAtIndex:(int)index
327 - (BOOL)switchToEQAtIndex:(int)index
332 - (BOOL)makePlaylistWithTerm:(NSString *)term ofType:(int)type