Added a play count option to track info.
[MenuTunes.git] / StatusWindowController.h
index 913432b..118ca38 100755 (executable)
 
 #import <Cocoa/Cocoa.h>
 #import "ITMTRemote.h"
-
-
-@class StatusWindow;
+#import "StatusWindow.h"
 
 
 typedef enum {
-    MTStatusWindowLoopModeLoopNone,
-    MTStatusWindowLoopModeLoopOne,
-    MTStatusWindowLoopModeLoopAll
-} MTStatusWindowLoopMode;
-
-typedef enum {
-    MTStatusWindowShuffleModeOn,
-    MTStatusWindowShuffleModeOff
-} MTStatusWindowShuffleMode;
+    StatusWindowRepeatNone = -1,
+    StatusWindowRepeatGroup,
+    StatusWindowRepeatTrack
+} StatusWindowRepeatMode;
 
 
 @interface StatusWindowController : NSObject {
-    StatusWindow *_window;
+    StatusWindow   *_window;
     NSUserDefaults *df;
 }
 
-- (void)showSongWindowWithTitle:            (NSString *)title
-                          album:            (NSString *)album
-                         artist:            (NSString *)artist
-                           time:            (NSString *)time  // FLOW: Should probably be NSDate or something.
-                    trackNumber:                   (int)trackNumber
-                     trackTotal:                  (int)trackTotal
-                         rating:                   (int)rating
-                         source:(ITMTRemotePlayerSource)source;
++ (StatusWindowController *)sharedController;
 
-- (void)showUpcomingSongsWithTitles:(NSArray *)titleStrings;
+- (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings;
 
 - (void)showVolumeWindowWithLevel:(float)level;
-- (void)showRatingWindowWithLevel:(int)level;
-- (void)showShuffleWindowWithMode:(MTStatusWindowShuffleMode)mode;
-- (void)showLoopWindowWithMode:(MTStatusWindowLoopMode)mode;
+- (void)showRatingWindowWithRating:(float)rating;
+- (void)showShuffleWindow:(BOOL)shuffle;
+- (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode;
+- (void)showSetupQueryWindow;
+- (void)showRegistrationQueryWindow;
+- (void)showReconnectQueryWindow;
+- (void)showNetworkErrorQueryWindow;
+- (void)showPreferencesUpdateWindow;
+
+- (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
+                               title:            (NSString *)title
+                               album:            (NSString *)album
+                              artist:            (NSString *)artist
+                            composer:            (NSString *)composer
+                                time:            (NSString *)time  // FLOW: Should probably be NSDate or something.
+                               track:            (NSString *)track
+                              rating:                   (int)rating
+                           playCount:                   (int)playCount
+                               image:             (NSImage *)art;
+
 
 @end