X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/6e879de483fcc0349bb3720d1eb8ae74dc6d3803..3b16f08f4e3b0f3b3105f79b12d2f0e0c7564a6e:/StatusWindowController.h diff --git a/StatusWindowController.h b/StatusWindowController.h index ba70600..913432b 100755 --- a/StatusWindowController.h +++ b/StatusWindowController.h @@ -1,27 +1,55 @@ /* * 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 The iThink Group. + * Copyright (c) 2003 iThink Software. * All Rights Reserved * */ #import +#import "ITMTRemote.h" + @class StatusWindow; -@interface StatusWindowController : NSObject -{ - IBOutlet NSTextField *statusField; - IBOutlet StatusWindow *statusWindow; + +typedef enum { + MTStatusWindowLoopModeLoopNone, + MTStatusWindowLoopModeLoopOne, + MTStatusWindowLoopModeLoopAll +} MTStatusWindowLoopMode; + +typedef enum { + MTStatusWindowShuffleModeOn, + MTStatusWindowShuffleModeOff +} MTStatusWindowShuffleMode; + + +@interface StatusWindowController : NSObject { + StatusWindow *_window; + NSUserDefaults *df; } -- (void)setUpcomingSongs:(NSString *)string numSongs:(int)songs; -- (void)setTrackInfo:(NSString *)string lines:(int)lines; -- (void)fadeWindowOut; + +- (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; + +- (void)showUpcomingSongsWithTitles:(NSArray *)titleStrings; + +- (void)showVolumeWindowWithLevel:(float)level; +- (void)showRatingWindowWithLevel:(int)level; +- (void)showShuffleWindowWithMode:(MTStatusWindowShuffleMode)mode; +- (void)showLoopWindowWithMode:(MTStatusWindowLoopMode)mode; + @end