X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/418a547d5daa457e97c3964224af5d703df5a19f..8cd402b5d3e43c95046af7ac0e4cb3cde2d622bc:/StatusWindowController.h?ds=inline diff --git a/StatusWindowController.h b/StatusWindowController.h index 1b32e4a..b192d36 100755 --- a/StatusWindowController.h +++ b/StatusWindowController.h @@ -1,27 +1,61 @@ /* * MenuTunes * StatusWindowController - * ... + * Abstraction layer between MainController and StatusWindow * - * Original Author : Kent Sutherland - * Responsibility : Kent Sutherland + * Original Author : Matthew Judy + * Responsibility : Matthew Judy * - * Copyright (c) 2002 iThink Software. + * Copyright (c) 2003 iThink Software. * All Rights Reserved * */ #import +#import "ITMTRemote.h" +#import "StatusWindow.h" -@class StatusWindow; -@interface StatusWindowController : NSObject -{ - IBOutlet NSTextField *statusField; - IBOutlet StatusWindow *statusWindow; +typedef enum { + StatusWindowRepeatNone = -1, + StatusWindowRepeatGroup, + StatusWindowRepeatTrack +} StatusWindowRepeatMode; + + +@interface StatusWindowController : NSObject { + StatusWindow *_window; + NSUserDefaults *df; + NSRange _timeRange; } -- (void)setUpcomingSongs:(NSString *)string; -- (void)setTrackInfo:(NSString *)string; -- (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)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; + +- (void)updateTime:(NSString *)time; + @end