Rewrote updateMenu/timerUpdate *again* Fixed some remote stuff
[MenuTunes.git] / OldMainController.h
1 /*
2  *      MenuTunes
3  *  MainController
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-2003 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 #import "PreferencesController.h"
21 #import "StatusWindow.h"
22
23 @interface MainController : NSObject
24 {
25     ITStatusItem   *statusItem;
26     NSMenu         *menu;
27     ITMTRemote     *currentRemote;
28     NSMutableArray *remoteArray;
29     
30     //Used in updating the menu automatically
31     NSTimer *refreshTimer;
32     int      trackInfoIndex;
33     
34     int      lastPlaylistIndex;
35     NSString *lastSongIdentifier;
36     int      lastSongRating;
37     BOOL     isPlayingRadio;
38     
39     ITMTRemotePlayerRunningState isAppRunning;
40     BOOL didHaveAlbumName;
41     BOOL didHaveArtistName; //Helper variable for creating the menu
42     
43     //For upcoming songs
44     NSMenuItem *upcomingSongsItem;
45     NSMenu     *upcomingSongsMenu;
46     
47     //For playlist selection
48     NSMenuItem *playlistItem;
49     NSMenu     *playlistMenu;
50     
51     //For EQ sets
52     NSMenuItem *eqItem;
53     NSMenu     *eqMenu;
54     
55     //For song ratings
56     NSMenuItem *ratingItem;
57     NSMenu *ratingMenu;
58     
59     NSMenuItem *playPauseItem; //Toggle between 'Play' and 'Pause'
60     
61     PreferencesController *prefsController;
62     StatusWindow *statusWindow; //Shows track info and upcoming songs.
63 }
64
65 - (void)applicationLaunched:(NSNotification *)note;
66 - (void)applicationTerminated:(NSNotification *)note;
67
68 - (void)registerDefaults;
69 - (void)rebuildMenu;
70
71 - (void)clearHotKeys;
72 - (void)closePreferences;
73
74 @end