6 * Original Author : Matthew Judy <mjudy@ithinksw.com>
7 * Responsibility : Matthew Judy <mjudy@ithinksw.com>
9 * Copyright (c) 2002-2003 iThink Software.
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>
21 @class StatusWindowController, MenuController;
23 @interface MainController : NSObject
25 ITStatusItem *statusItem;
26 NSMutableArray *remoteArray;
27 ITMTRemote *currentRemote;
29 ITMTRemoteControlState playerRunningState;
31 //Used in updating the menu automatically
32 NSTimer *refreshTimer;
33 NSString *_latestSongIdentifier;
35 StatusWindowController *statusWindowController; //Shows status windows
36 MenuController *menuController;
39 + (MainController *)sharedController;
43 //Methods called from MenuController by menu items
49 - (void)selectPlaylistAtIndex:(int)index;
50 - (void)selectSongAtIndex:(int)index;
51 - (void)selectSongRating:(int)rating;
52 - (void)selectEQPresetAtIndex:(int)index;
54 - (void)showPreferences;
55 - (void)quitMenuTunes;
59 - (ITMTRemote *)currentRemote;
62 - (void)closePreferences;