X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/31ab86a87f78edfdd32810db1ff708ca8f5eaaca..74d6135e4db4cf9a70994d5bc2062be30311d0f3:/ITMTRemote.h diff --git a/ITMTRemote.h b/ITMTRemote.h index 3d2015f..693d908 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -28,6 +28,14 @@ #import +typedef enum { + stopped = -1, + paused, + playing, + rewinding, + forwarding +} ITMTRemotePlayerState; + /*! @protocol ITMTRemote * @abstract Declares what a MenuTunes Remote must be able to do. * @discussion A MenuTunes Remote must be able to return and change state information. @@ -48,7 +56,7 @@ + (id)remote; /*! @method title: - * @abstract Returns an autoreleased instance of the remote. + * @abstract Returns the title of the plugin, which should be player name. * @result An NSString containing the title. */ - (NSString *)title; @@ -77,13 +85,24 @@ */ - (BOOL)halt; -- (NSArray *)sources; -- (int)currentSourceIndex; +/*! @method isAppRunning: + * @abstract Returns controlled application's running status (is or isn't running). + * @result BOOL of the controlled application's running status. + */ +- (BOOL)isAppRunning; -- (NSArray *)playlistsForCurrentSource; +/*! @method playerState: + * @abstract Returns controlled application's playing state. + * @result ITMTRemotePlayerState of the controlled application's playing state. + */ +- (ITMTRemotePlayerState)playerState; + +- (NSArray *)playlists; +- (int)numberOfSongsInPlaylistAtIndex:(int)index; +- (NSString *)classOfPlaylistAtIndex:(int)index; - (int)currentPlaylistIndex; -- (NSString *)songTitleAtIndex; +- (NSString *)songTitleAtIndex:(int)index; - (int)currentSongIndex; - (NSString *)currentSongTitle; @@ -93,16 +112,22 @@ - (NSString *)currentSongLength; - (NSString *)currentSongRemaining; +- (float)currentSongRating; +- (BOOL)setCurrentSongRating:(float)rating; + - (NSArray *)eqPresets; +- (int)currentEQPresetIndex; + +- (float)volume; +- (BOOL)setVolume:(float)volume; - (BOOL)play; - (BOOL)pause; - (BOOL)goToNextSong; - (BOOL)goToPreviousSong; -- (BOOL)goToNextPlaylist; -- (BOOL)goToPreviousPlaylist; +- (BOOL)fastForward; +- (BOOL)rewind; -- (BOOL)switchToSourceAtIndex:(int)index; - (BOOL)switchToPlaylistAtIndex:(int)index; - (BOOL)switchToSongAtIndex:(int)index; - (BOOL)switchToEQAtIndex:(int)index;