Added audioscrobbler status strings
[MenuTunes.git] / StatusWindowController.h
index ba70600..18443dc 100755 (executable)
@@ -1,27 +1,79 @@
 /*
  *     MenuTunes
  *  StatusWindowController
 /*
  *     MenuTunes
  *  StatusWindowController
- *    ...
+ *    Abstraction layer between MainController and StatusWindow
  *
  *
- *  Original Author : Kent Sutherland <ksuther@ithinksw.com>
- *   Responsibility : Kent Sutherland <ksuther@ithinksw.com>
+ *  Original Author : Matthew Judy <mjudy@ithinksw.com>
+ *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
  *
  *
- *  Copyright (c) 2002 The iThink Group.
+ *  Copyright (c) 2003 iThink Software.
  *  All Rights Reserved
  *
  */
 
 
 #import <Cocoa/Cocoa.h>
  *  All Rights Reserved
  *
  */
 
 
 #import <Cocoa/Cocoa.h>
+#import "ITMTRemote.h"
+#import "StatusWindow.h"
 
 
-@class StatusWindow;
 
 
-@interface StatusWindowController : NSObject
-{
-    IBOutlet NSTextField *statusField;
-    IBOutlet StatusWindow *statusWindow;
+typedef enum {
+    StatusWindowRepeatNone = -1,
+    StatusWindowRepeatGroup,
+    StatusWindowRepeatTrack
+} StatusWindowRepeatMode;
+
+typedef enum {
+       StatusWindowNoType = -1,
+       StatusWindowTrackInfoType,
+       StatusWindowUpcomingSongsType,
+       StatusWindowVolumeType,
+       StatusWindowRatingType,
+       StatusWindowRepeatType,
+       StatusWindowShuffleType,
+       StatusWindowShufflabilityType,
+       StatusWindowSetupType,
+       StatusWindowRegistrationType,
+       StatusWindowNetworkType,
+       StatusWindowPreferencesType,
+       StatusWindowDebugType
+} StatusWindowType;
+
+@interface StatusWindowController : NSObject {
+    StatusWindow   *_window;
+    NSUserDefaults *df;
+       NSRange _timeRange;
+       StatusWindowType _currentType;
 }
 }
-- (void)setUpcomingSongs:(NSString *)string numSongs:(int)songs;
-- (void)setTrackInfo:(NSString *)string lines:(int)lines;
-- (void)fadeWindowOut;
+
++ (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)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;
+
+- (StatusWindowType)currentStatusWindowType;
+- (void)updateTime:(NSString *)time;
+
 @end
 @end