Added stuff for current song rating. Right now in the submenu there are
[MenuTunes.git] / ITMTRemote.h
index 735e11e..b20eaee 100755 (executable)
 
 #import <Cocoa/Cocoa.h>
 
 
 #import <Cocoa/Cocoa.h>
 
-typedef enum {stopped = -1, paused, playing, rewinding, forwarding} PlayerState;
+typedef enum {
+    stopped = -1,
+    paused,
+    playing,
+    rewinding,
+    forwarding
+} PlayerState;
 
 /*! @protocol ITMTRemote
  *  @abstract Declares what a MenuTunes Remote must be able to do.
 
 /*! @protocol ITMTRemote
  *  @abstract Declares what a MenuTunes Remote must be able to do.
@@ -50,7 +56,7 @@ typedef enum {stopped = -1, paused, playing, rewinding, forwarding} PlayerState;
 + (id)remote;
 
 /*! @method title:
 + (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;
  *  @result An NSString containing the title.
  */
 - (NSString *)title;
@@ -79,6 +85,7 @@ typedef enum {stopped = -1, paused, playing, rewinding, forwarding} PlayerState;
  */
 - (BOOL)halt;
 
  */
 - (BOOL)halt;
 
+- (BOOL)isAppRunning;
 - (PlayerState)playerState;
 
 - (NSArray *)playlists;
 - (PlayerState)playerState;
 
 - (NSArray *)playlists;
@@ -96,6 +103,9 @@ typedef enum {stopped = -1, paused, playing, rewinding, forwarding} PlayerState;
 - (NSString *)currentSongLength;
 - (NSString *)currentSongRemaining;
 
 - (NSString *)currentSongLength;
 - (NSString *)currentSongRemaining;
 
+- (int)currentSongRating;
+- (BOOL)setCurrentSongRating:(int)rating;
+
 - (NSArray *)eqPresets;
 - (int)currentEQPresetIndex;
 
 - (NSArray *)eqPresets;
 - (int)currentEQPresetIndex;