Added audioscrobbler to the preferences. Haven't hooked it up to the keychain yet.
[MenuTunes.git] / StatusWindowController.h
index 63364a6..18443dc 100755 (executable)
 
 
 #import <Cocoa/Cocoa.h>
 
 
 #import <Cocoa/Cocoa.h>
-
-
-@class StatusWindow;
+#import "ITMTRemote.h"
+#import "StatusWindow.h"
 
 
 typedef enum {
 
 
 typedef enum {
-    MTStatusWindowLoopModeLoopNone,
-    MTStatusWindowLoopModeLoopOne,
-    MTStatusWindowLoopModeLoopAll
-} MTStatusWindowLoopMode;
+    StatusWindowRepeatNone = -1,
+    StatusWindowRepeatGroup,
+    StatusWindowRepeatTrack
+} StatusWindowRepeatMode;
 
 typedef enum {
 
 typedef enum {
-    MTStatusWindowShuffleModeOn,
-    MTStatusWindowShuffleModeOff
-} MTStatusWindowShuffleMode;
-
+       StatusWindowNoType = -1,
+       StatusWindowTrackInfoType,
+       StatusWindowUpcomingSongsType,
+       StatusWindowVolumeType,
+       StatusWindowRatingType,
+       StatusWindowRepeatType,
+       StatusWindowShuffleType,
+       StatusWindowShufflabilityType,
+       StatusWindowSetupType,
+       StatusWindowRegistrationType,
+       StatusWindowNetworkType,
+       StatusWindowPreferencesType,
+       StatusWindowDebugType
+} StatusWindowType;
 
 @interface StatusWindowController : NSObject {
 
 @interface StatusWindowController : NSObject {
-    StatusWindow *_window;
+    StatusWindow   *_window;
+    NSUserDefaults *df;
+       NSRange _timeRange;
+       StatusWindowType _currentType;
 }
 
 }
 
-- (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;
++ (StatusWindowController *)sharedController;
+
+- (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings;
+
+- (void)showVolumeWindowWithLevel:(float)level;
+- (void)showRatingWindowWithRating:(float)rating;
+- (void)showShuffleWindow:(BOOL)shuffle;
+- (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode;
+- (void)showSongShufflabilityWindow:(BOOL)shufflable;
+- (void)showSetupQueryWindow;
+- (void)showRegistrationQueryWindow;
+- (void)showReconnectQueryWindow;
+- (void)showNetworkErrorQueryWindow;
+- (void)showPreferencesUpdateWindow;
+- (void)showDebugModeEnabledWindow;
 
 
-- (void)showUpcomingSongsWithTitles:(NSArray *)titleStrings;
+- (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;
 
 
-- (void)showVolumeWindowWithLevel:(int)level;
-- (void)showShuffleWindowWithMode:(MTStatusWindowShuffleMode)mode;
-- (void)showLoopWindowWithMode:(MTStatusWindowLoopMode)mode;
+- (StatusWindowType)currentStatusWindowType;
+- (void)updateTime:(NSString *)time;
 
 @end
 
 @end