Lots of rewritten code. Not yet working because the status item doesn't
[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 <StatusWindow.h>
21
22 @class PreferencesController, StatusWindow;
23
24 @interface MainController : NSObject
25 {
26     ITStatusItem   *statusItem;
27     ITMTRemote     *currentRemote;
28     NSMutableArray *remoteArray;
29     
30     //Used in updating the menu automatically
31     NSTimer *refreshTimer;
32     int      trackInfoIndex;
33     int      lastSongIndex;
34     int      lastPlaylistIndex;
35     BOOL     isPlayingRadio;
36     
37     ITMTRemotePlayerRunningState isAppRunning;
38     
39     PreferencesController *prefsController;
40     StatusWindow *statusWindow; //Shows track info and upcoming songs.
41 }
42
43 - (void)applicationLaunched:(NSNotification *)note;
44 - (void)applicationTerminated:(NSNotification *)note;
45
46 - (void)registerDefaults;
47
48 - (void)startTimerInNewThread;
49
50 - (void)clearHotKeys;
51 - (void)closePreferences;
52
53 - (void)showPlayer:(id)sender;
54
55 @end