307975d38b4b0f16d6efcb0081a5dd2a52b7881a
[MenuTunes.git] / StatusWindowController.h
1 /*
2  *      MenuTunes
3  *  StatusWindowController
4  *    Abstraction layer between MainController and StatusWindow
5  *
6  *  Original Author : Matthew Judy <mjudy@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <Cocoa/Cocoa.h>
16 #import "ITMTRemote.h"
17 #import "StatusWindow.h"
18
19
20 typedef enum {
21     StatusWindowRepeatNone = -1,
22     StatusWindowRepeatGroup,
23     StatusWindowRepeatTrack
24 } StatusWindowRepeatMode;
25
26
27 @interface StatusWindowController : NSObject {
28     StatusWindow   *_window;
29     NSUserDefaults *df;
30         NSRange _timeRange;
31 }
32
33 + (StatusWindowController *)sharedController;
34
35 - (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings;
36
37 - (void)showVolumeWindowWithLevel:(float)level;
38 - (void)showRatingWindowWithRating:(float)rating;
39 - (void)showShuffleWindow:(BOOL)shuffle;
40 - (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode;
41 - (void)showSongShufflabilityWindow:(BOOL)shufflable;
42 - (void)showSetupQueryWindow;
43 - (void)showRegistrationQueryWindow;
44 - (void)showReconnectQueryWindow;
45 - (void)showNetworkErrorQueryWindow;
46 - (void)showPreferencesUpdateWindow;
47 - (void)showDebugModeEnabledWindow;
48
49 - (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
50                                title:            (NSString *)title
51                                album:            (NSString *)album
52                               artist:            (NSString *)artist
53                             composer:            (NSString *)composer
54                                 time:            (NSString *)time  // FLOW: Should probably be NSDate or something.
55                                track:            (NSString *)track
56                               rating:                   (int)rating
57                            playCount:                   (int)playCount
58                                image:             (NSImage *)art;
59
60 - (void)updateTime:(NSString *)time;
61
62 @end