X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/3b5e8f80a471ff88cd39e8c295276beb7c3412ec..97eb97cd6af1e3019980ed380a6cbaf1feae0abe:/StatusWindowController.h?ds=sidebyside diff --git a/StatusWindowController.h b/StatusWindowController.h index 2cf440b..18443dc 100755 --- a/StatusWindowController.h +++ b/StatusWindowController.h @@ -14,39 +14,66 @@ #import #import "ITMTRemote.h" - - -@class StatusWindow; +#import "StatusWindow.h" typedef enum { - StatusWindowRepeatNone, + StatusWindowRepeatNone = -1, StatusWindowRepeatGroup, - StatusWindowRepeatSong + 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; } ++ (StatusWindowController *)sharedController; + - (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings; - (void)showVolumeWindowWithLevel:(float)level; -- (void)showRatingWindowWithRating:(int)rating; +- (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 - time: (NSString *)time - trackNumber: (int)trackNumber - trackTotal: (int)trackTotal - rating: (int)rating; + 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