X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/217dd5d7129df9accb9ec28e36af672531c6c4ab..4909f1dfc7aca6fc2d2cfa0ad60897df44f4affe:/ITMTRemote.m?ds=inline diff --git a/ITMTRemote.m b/ITMTRemote.m index 9baf3f2..9a720c4 100755 --- a/ITMTRemote.m +++ b/ITMTRemote.m @@ -1,6 +1,5 @@ #import "ITMTRemote.h" - @implementation ITMTRemote + (id)remote @@ -8,37 +7,148 @@ return nil; } -- (NSString *)title +- (NSString *)remoteTitle +{ + return nil; +} + +- (NSString *)remoteInformation +{ + return nil; +} + +- (NSImage *)remoteIcon { return nil; } -- (NSString *)description +- (BOOL)begin +{ + return NO; +} + +- (BOOL)halt +{ + return NO; +} + +- (NSString *)playerFullName +{ + return nil; +} + +- (NSString *)playerSimpleName +{ + return nil; +} + +- (NSDictionary *)capabilities +{ + return [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool: NO], @"Remote", // Set this to YES for a valid remote, otherwise the remote will be unusable. + [NSNumber numberWithBool: NO], @"Basic Track Control", + [NSNumber numberWithBool: NO], @"Track Information", + [NSNumber numberWithBool: NO], @"Track Navigation", + [NSNumber numberWithBool: NO], @"Upcoming Songs", + [NSNumber numberWithBool: NO], @"Playlists", + [NSNumber numberWithBool: NO], @"Volume", + [NSNumber numberWithBool: NO], @"Shuffle", + [NSNumber numberWithBool: NO], @"Repeat Modes", + [NSNumber numberWithBool: NO], @"Equalizer", + [NSNumber numberWithBool: NO], @"Track Rating", + nil]; +} + +- (BOOL)showPrimaryInterface +{ + return NO; +} + +- (ITMTRemotePlayerRunningState)playerRunningState +{ + return ITMTRemotePlayerNotRunning; +} + +- (ITMTRemotePlayerPlayingState)playerPlayingState +{ + return ITMTRemotePlayerStopped; +} + +- (NSArray *)playlists { return nil; } -- (NSImage *)icon +- (NSArray *)artists { return nil; } -- (NSArray *)sources +- (NSArray *)albums { return nil; } -- (NSArray *)playlistsForCurrentSource +- (int)numberOfSources +{ + return -1; +} + +- (int)numberOfSongsInPlaylistAtIndex:(int)index +{ + return -1; +} + +- (ITMTRemotePlayerSource)currentSource +{ + return ITMTRemoteLibrarySource; +} + +- (int)currentSourceIndex +{ + return -1; +} + +- (ITMTRemotePlayerPlaylistClass)currentPlaylistClass +{ + return ITMTRemotePlayerLibraryPlaylist; +} + +- (int)currentPlaylistIndex +{ + return -1; +} + +- (NSString *)songTitleAtIndex:(int)index { return nil; } +- (BOOL)songEnabledAtIndex:(int)index +{ + return NO; +} -- (NSArray *)songsForCurrentPlaylist +- (int)currentAlbumTrackCount +{ + return -1; +} + +- (int)currentSongTrack +{ + return -1; +} + +- (NSString *)playerStateUniqueIdentifier { return nil; } +- (int)currentSongIndex +{ + return -1; +} + - (NSString *)currentSongTitle { return nil; @@ -49,6 +159,11 @@ return nil; } +- (NSString *)currentSongComposer +{ + return nil; +} + - (NSString *)currentSongAlbum { return nil; @@ -64,16 +179,106 @@ return nil; } +- (int)currentSongPlayed +{ + return -1; +} + +- (int)currentSongDuration +{ + return -1; +} + - (NSString *)currentSongRemaining { return nil; } -- (NSArray *)eqPresets; +- (NSString *)currentSongElapsed +{ + return nil; +} + +- (NSImage *)currentSongAlbumArt { return nil; } +- (int)currentSongPlayCount +{ + return 0; +} + +- (float)currentSongRating +{ + return 0; +} + +- (BOOL)setCurrentSongRating:(float)rating +{ + return NO; +} + +- (BOOL)currentSongShufflable +{ + return NO; +} + +- (BOOL)setCurrentSongShufflable:(BOOL)shufflable +{ + return NO; +} + +- (BOOL)equalizerEnabled +{ + return NO; +} + +- (BOOL)setEqualizerEnabled:(BOOL)enabled +{ + return NO; +} + +- (NSArray *)eqPresets +{ + return nil; +} + +- (int)currentEQPresetIndex +{ + return 0; +} + +- (float)volume +{ + return 0; +} + +- (BOOL)setVolume:(float)volume +{ + return NO; +} + +- (BOOL)shuffleEnabled +{ + return NO; +} + +- (BOOL)setShuffleEnabled:(BOOL)enabled +{ + return NO; +} + +- (ITMTRemotePlayerRepeatMode)repeatMode +{ + return ITMTRemotePlayerRepeatOff; +} + +- (BOOL)setRepeatMode:(ITMTRemotePlayerRepeatMode)repeatMode +{ + return NO; +} + - (BOOL)play { return NO; @@ -94,22 +299,22 @@ return NO; } -- (BOOL)goToNextPlaylist +- (BOOL)forward { return NO; } -- (BOOL)goToPreviousPlaylist +- (BOOL)rewind { return NO; } -- (BOOL)switchToSourceAtIndex:(int)index +- (BOOL)switchToPlaylistAtIndex:(int)index { return NO; } -- (BOOL)switchToPlaylistAtIndex:(int)index +- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2 { return NO; } @@ -124,5 +329,9 @@ return NO; } +- (BOOL)makePlaylistWithTerm:(NSString *)term ofType:(int)type +{ + return NO; +} @end