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>
22 @class StatusWindowController;
25 @interface MainController : NSObject
27 ITStatusItem *statusItem;
28 NSMutableArray *remoteArray;
29 ITMTRemote *currentRemote;
31 ITMTRemotePlayerRunningState playerRunningState;
32 ITMTRemotePlayerPlaylistClass latestPlaylistClass;
34 //Used in updating the menu automatically
35 NSTimer *refreshTimer;
37 NSString *_latestSongIdentifier;
39 StatusWindowController *statusWindowController; //Shows track info and upcoming songs.
42 + (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;
54 - (void)showPreferences;
55 - (void)quitMenuTunes;
59 - (ITMTRemote *)currentRemote;
61 - (void)closePreferences;