Stripped out older stuff. It's better now :)
[MenuTunes.git] / MenuTunes.h
1 /*
2  *      MenuTunes
3  *  MenuTunes
4  *    App Controller Class
5  *
6  *  Original Author : Kent Sutherland <ksuther@ithinksw.com>
7  *   Responsibility : Kent Sutherland <ksuther@ithinksw.com>
8  *
9  *  Copyright (c) 2002 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <Cocoa/Cocoa.h>
16 #import <Carbon/Carbon.h>
17 #import <ITKit/ITKit.h>
18 #import <ITFoundation/ITFoundation.h>
19 #import <ITMTRemote/ITMTRemote.h>
20
21
22 //@class MenuTunesView;
23 @class PreferencesController, StatusWindowController;
24
25 @interface MenuTunes : NSObject
26 {
27     ITStatusItem *statusItem;
28     NSMenu *menu;
29     ITMTRemote *currentRemote;
30     NSMutableArray *remoteArray;
31     
32     //Used in updating the menu automatically
33     NSTimer *refreshTimer;
34     int trackInfoIndex, lastSongIndex;
35     bool isPlayingRadio;
36     
37     bool isAppRunning;
38     bool didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu
39     
40     //For upcoming songs
41     NSMenuItem *upcomingSongsItem;
42     NSMenu *upcomingSongsMenu;
43     
44     //For playlist selection
45     NSMenuItem *playlistItem;
46     NSMenu *playlistMenu;
47     
48     //For EQ sets
49     NSMenuItem *eqItem;
50     NSMenu *eqMenu;
51     
52     NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause'
53     
54     PreferencesController *prefsController;
55     StatusWindowController *statusController; //Shows track info and upcoming songs.
56 }
57 - (void)registerDefaultsIfNeeded;
58 - (void)rebuildMenu;
59 - (void)clearHotKeys;
60 - (void)closePreferences;
61
62 @end