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>
20 #import "MTBlingController.h"
22 #define MT_CURRENT_VERSION 1300
24 @class StatusWindowController, MenuController, NetworkController;
26 @interface MainController : NSObject
28 ITStatusItem *statusItem;
29 NSMutableArray *remoteArray;
30 ITMTRemote *currentRemote;
32 ITMTRemotePlayerRunningState playerRunningState;
33 ITMTRemotePlayerPlaylistClass latestPlaylistClass;
35 //Used in updating the menu automatically
36 NSTimer *refreshTimer;
37 NSString *_latestSongIdentifier;
39 StatusWindowController *statusWindowController; //Shows status windows
40 MenuController *menuController;
41 NetworkController *networkController;
44 MTBlingController *bling;
45 NSTimer *registerTimer;
49 + (MainController *)sharedController;
53 //Methods called from MenuController by menu items
54 - (NSDate*)getBlingTime;
66 - (void)selectPlaylistAtIndex:(int)index;
67 - (void)selectSongAtIndex:(int)index;
68 - (void)selectSongRating:(int)rating;
69 - (void)selectEQPresetAtIndex:(int)index;
71 - (void)showPreferences;
72 - (void)showTestWindow;
73 - (void)quitMenuTunes;
77 - (void)setServerStatus:(BOOL)newStatus;
78 - (int)connectToServer;
79 - (BOOL)disconnectFromServer;
80 - (void)networkError:(NSException *)exception;
84 - (ITMTRemote *)currentRemote;
87 - (void)closePreferences;
88 - (MenuController *)menuController;
90 - (void)showCurrentTrackInfo;