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 ITMTRemotePlayerRunningState playerRunningState;
30 ITMTRemotePlayerPlaylistClass latestPlaylistClass;
32 //Used in updating the menu automatically
33 NSTimer *refreshTimer;
34 NSString *_latestSongIdentifier;
36 StatusWindowController *statusWindowController; //Shows status windows
37 MenuController *menuController;
40 + (MainController *)sharedController;
44 //Methods called from MenuController by menu items
50 - (void)selectPlaylistAtIndex:(int)index;
51 - (void)selectSongAtIndex:(int)index;
52 - (void)selectSongRating:(int)rating;
53 - (void)selectEQPresetAtIndex:(int)index;
55 - (void)showPreferences;
56 - (void)quitMenuTunes;
60 - (ITMTRemote *)currentRemote;
63 - (void)closePreferences;