X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/cd6e87dff75957b5863cc2388b6732e840db898e..8c2086efaf1ee7419fc91275fdc7426de3fbe7fd:/ITMTRemote.h diff --git a/ITMTRemote.h b/ITMTRemote.h index 3e8c9bd..735e11e 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -28,12 +28,15 @@ #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. */ - @protocol ITMTRemote + + /*! @method remote * @abstract Returns an autoreleased instance of the remote. * @discussion Should be very quick and compact. @@ -56,7 +59,7 @@ * @abstract Returns a description of the remote. * @result An NSString containing the description. */ -- (NSString *)description; +- (NSString *)information; /*! @method icon: * @abstract Returns a icon for the remote. @@ -76,13 +79,14 @@ */ - (BOOL)halt; -- (NSArray *)sources; -- (int)currentSourceIndex; +- (PlayerState)playerState; -- (NSArray *)playlistsForCurrentSource; +- (NSArray *)playlists; +- (int)numberOfSongsInPlaylistAtIndex:(int)index; +- (NSString *)classOfPlaylistAtIndex:(int)index; - (int)currentPlaylistIndex; -- (NSString *)songTitleAtIndex; +- (NSString *)songTitleAtIndex:(int)index; - (int)currentSongIndex; - (NSString *)currentSongTitle; @@ -93,15 +97,15 @@ - (NSString *)currentSongRemaining; - (NSArray *)eqPresets; +- (int)currentEQPresetIndex; - (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;