X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/e740c3a87c5e9bcf4ef1751b37545fc616592e6c..26e7dbbdfdddcb98beb83c19a83b8e35416821ff:/ITMTRemote.h diff --git a/ITMTRemote.h b/ITMTRemote.h index 9b36236..b20eaee 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -28,6 +28,14 @@ #import +typedef enum { + stopped = -1, + paused, + playing, + rewinding, + forwarding +} PlayerState; + /*! @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,6 +85,9 @@ */ - (BOOL)halt; +- (BOOL)isAppRunning; +- (PlayerState)playerState; + - (NSArray *)playlists; - (int)numberOfSongsInPlaylistAtIndex:(int)index; - (NSString *)classOfPlaylistAtIndex:(int)index; @@ -92,6 +103,9 @@ - (NSString *)currentSongLength; - (NSString *)currentSongRemaining; +- (int)currentSongRating; +- (BOOL)setCurrentSongRating:(int)rating; + - (NSArray *)eqPresets; - (int)currentEQPresetIndex; @@ -99,6 +113,8 @@ - (BOOL)pause; - (BOOL)goToNextSong; - (BOOL)goToPreviousSong; +- (BOOL)fastForward; +- (BOOL)rewind; - (BOOL)switchToPlaylistAtIndex:(int)index; - (BOOL)switchToSongAtIndex:(int)index;