X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/cefefd3e817015f9b8e5708bedc52539cfa88799..8b06c48ba29b681cd97ca543733467e2a6c6cd0a:/ITMTRemote.m diff --git a/ITMTRemote.m b/ITMTRemote.m index d2f2ccc..3c49e72 100755 --- a/ITMTRemote.m +++ b/ITMTRemote.m @@ -2,6 +2,11 @@ @implementation ITMTRemote ++ (void)initialize +{ +[self setVersion:2]; +} + + (id)remote { return nil; @@ -43,31 +48,168 @@ } - (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; +} + +- (BOOL)showExternalWindow +{ + return NO; +} + +- (NSString*)externalWindowName { return nil; } -- (ITMTRemotePlayerRunningState)playerRunningState +- (BOOL)setShuffle:(BOOL)toggle +{ + return NO; +} + +- (BOOL)supportsVolume +{ + return NO; +} + +- (BOOL)supportsShuffle +{ + return NO; +} + +- (BOOL)shuffle +{ + return NO; +} + +- (BOOL)setTrackProperty:(ITMTRemoteTrackProperty)property toValue:(id)value atIndex:(int)index +{ + return NO; +} + +- (id)trackProperty:(ITMTRemoteTrackProperty)property atIndex:(int)index { return nil; } -- (ITMTRemotePlayerPlayingState)playerPlayingState +- (BOOL)supportsTrackProperty:(ITMTRemoteTrackProperty)property +{ + return NO; +} + +- (BOOL)supportsRepeatMode:(ITMTRemoteRepeatMode)repeatMode +{ + return NO; +} + +- (BOOL)sendControlAction:(ITMTRemoteControlAction)action +{ + return NO; +} + +- (BOOL)supportsControlAction:(ITMTRemoteControlAction)action +{ + return NO; +} + +- (int)indexForTrack:(int)identifier inPlaylist:(int)playlistIndex +{ + return 0; +} + +- (NSImage*)icon { return nil; } -- (NSArray *)playlists +- (NSArray*)playlistNames { return nil; } -- (int)numberOfSongsInPlaylistAtIndex:(int)index +- (NSString*)informationString:(ITMTRemoteInformationString)string; { return nil; } -- (NSString *)classOfPlaylistAtIndex:(int)index +- (BOOL)switchToPlaylist:(int)playlistIndex +{ + return 0; +} + +- (BOOL)switchToTrackAtIndex:(int)index +{ + return 0; +} + +- (int)identifierForTrackAtIndex:(int)index inPlaylist:(int)playlistIndex +{ + return 0; +} + +- (BOOL)supportsCustomEqualizer +{ + return NO; +} + +- (BOOL)showEqualizerWindow +{ + return NO; +} + +- (BOOL)supportsEqualizerPresets +{ + return NO; +} + +- (BOOL)supportsExternalWindow +{ + return NO; +} + +- (NSArray*)equalizerPresetNames +{ + return nil; +} + +- (BOOL)switchToEqualizerPreset:(int)index +{ + return NO; +} + +- (ITMTRemoteControlState)controlState +{ + return nil; +} + +- (ITMTRemotePlaylistMode)playlistMode +{ + return nil; +} + +- (NSArray *)playlists +{ + return nil; +} + +- (int)numberOfSongsInPlaylistAtIndex:(int)index { return nil; } @@ -82,6 +224,21 @@ return nil; } +- (int)currentAlbumTrackCount +{ + return nil; +} + +- (int)currentSongTrack +{ + return nil; +} + +- (NSString *)currentSongUniqueIdentifier +{ + return nil; +} + - (int)currentSongIndex { return nil; @@ -127,7 +284,7 @@ return NO; } -- (BOOL)equalizerEnabled +/* - (BOOL)equalizerEnabled { return NO; } @@ -135,7 +292,7 @@ - (BOOL)setEqualizerEnabled:(BOOL)enabled { return NO; -} +} */ - (NSArray *)eqPresets { @@ -167,12 +324,12 @@ return NO; } -- (ITMTRemotePlayerRepeatMode)repeatMode +- (ITMTRemoteRepeatMode)repeatMode { - return ITMTRemotePlayerRepeatOff; + return ITMTRemoteRepeatNone; } -- (BOOL)setRepeatMode:(ITMTRemotePlayerRepeatMode)repeatMode +- (BOOL)setRepeatMode:(ITMTRemoteRepeatMode)repeatMode { return NO; }