No single line enumerations, please, and check headerdocs when adding them.
[MenuTunes.git] / ITMTRemote.h
index be50925..c757cdd 100755 (executable)
 
 #import <Cocoa/Cocoa.h>
 
+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;
  */
 - (BOOL)halt;
 
-- (int)numberOfPlaylists;
+- (BOOL)isAppRunning;
+- (PlayerState)playerState;
+
+- (NSArray *)playlists;
 - (int)numberOfSongsInPlaylistAtIndex:(int)index;
 - (NSString *)classOfPlaylistAtIndex:(int)index;
 - (int)currentPlaylistIndex;
 - (NSString *)currentSongRemaining;
 
 - (NSArray *)eqPresets;
+- (int)currentEQPresetIndex;
 
 - (BOOL)play;
 - (BOOL)pause;
 - (BOOL)goToNextSong;
 - (BOOL)goToPreviousSong;
+- (BOOL)fastForward;
+- (BOOL)rewind;
 
 - (BOOL)switchToPlaylistAtIndex:(int)index;
 - (BOOL)switchToSongAtIndex:(int)index;