-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStatusWindowController.h
executable file
·76 lines (65 loc) · 2.33 KB
/
StatusWindowController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* MenuTunes
* StatusWindowController.h
*
* Abstraction layer between MainController and StatusWindow.
*
* Copyright (c) 2003 iThink Software
*
*/
#import <Cocoa/Cocoa.h>
#import "ITMTRemote.h"
#import "StatusWindow.h"
typedef enum {
StatusWindowRepeatNone = -1,
StatusWindowRepeatGroup,
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;
- (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings;
- (void)showVolumeWindowWithLevel:(float)level;
- (void)showRatingWindowWithRating:(float)rating;
- (void)showShuffleWindow:(BOOL)shuffle;
- (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode;
- (void)showSongShufflabilityWindow:(BOOL)shufflable;
- (void)showSetupQueryWindow;
- (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
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;
- (StatusWindowType)currentStatusWindowType;
- (void)updateTime:(NSString *)time;
@end