X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/50485da2e6ae0642e4dfb55ef4c0556ed6ef2a80..refs/heads/master:/StatusWindowController.h diff --git a/StatusWindowController.h b/StatusWindowController.h index c0ec9eb..a3d85d3 100755 --- a/StatusWindowController.h +++ b/StatusWindowController.h @@ -1,17 +1,13 @@ /* * MenuTunes - * StatusWindowController - * Abstraction layer between MainController and StatusWindow + * StatusWindowController.h * - * Original Author : Matthew Judy - * Responsibility : Matthew Judy + * Abstraction layer between MainController and StatusWindow. * - * Copyright (c) 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2003 iThink Software * */ - #import #import "ITMTRemote.h" #import "StatusWindow.h" @@ -23,10 +19,27 @@ typedef enum { StatusWindowRepeatTrack } StatusWindowRepeatMode; +typedef enum { + StatusWindowNoType = -1, + StatusWindowTrackInfoType, + StatusWindowAlbumArtType, + StatusWindowUpcomingSongsType, + StatusWindowVolumeType, + StatusWindowRatingType, + StatusWindowRepeatType, + StatusWindowShuffleType, + StatusWindowShufflabilityType, + StatusWindowSetupType, + StatusWindowNetworkType, + StatusWindowPreferencesType, + StatusWindowDebugType +} StatusWindowType; @interface StatusWindowController : NSObject { StatusWindow *_window; NSUserDefaults *df; + NSRange _timeRange; + StatusWindowType _currentType; } + (StatusWindowController *)sharedController; @@ -37,11 +50,15 @@ typedef enum { - (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)showAlbumArtWindowWithImage:(NSImage *)image; +- (void)showAlbumArtWindowWithErrorText:(NSString *)string; - (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source title: (NSString *)title album: (NSString *)album @@ -50,7 +67,10 @@ typedef enum { 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