Fixing crashes :D
[MenuTunes.git] / MainController.h
1 /*
2  *      MenuTunes
3  *  MainController
4  *    App Controller Class
5  *
6  *  Original Author : Matthew Judy <mjudy@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@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 "MTBlingController.h"
21
22 @class StatusWindowController, MenuController;
23
24 @interface MainController : NSObject
25 {
26     ITStatusItem   *statusItem;
27     NSMutableArray *remoteArray;
28     ITMTRemote     *currentRemote;
29     
30     ITMTRemotePlayerRunningState  playerRunningState;
31     ITMTRemotePlayerPlaylistClass latestPlaylistClass;
32     
33     //Used in updating the menu automatically
34     NSTimer *refreshTimer;
35     NSString *_latestSongIdentifier;
36     
37     StatusWindowController *statusWindowController; //Shows status windows
38     MenuController *menuController;
39     NSUserDefaults *df;
40     
41     NSDate *blingDate;
42     MTBlingController *bling;
43     BOOL timerUpdating;
44 }
45 + (MainController *)sharedController;
46
47 - (void)menuClicked;
48
49 //Methods called from MenuController by menu items
50 - (void)blingTime;
51 - (void)blingNow;
52 - (BOOL)blingBling;
53
54 - (void)playPause;
55 - (void)nextSong;
56 - (void)prevSong;
57 - (void)fastForward;
58 - (void)rewind;
59 - (void)selectPlaylistAtIndex:(int)index;
60 - (void)selectSongAtIndex:(int)index;
61 - (void)selectSongRating:(int)rating;
62 - (void)selectEQPresetAtIndex:(int)index;
63 - (void)showPlayer;
64 - (void)showPreferences;
65 - (void)quitMenuTunes;
66
67 //
68
69 - (ITMTRemote *)currentRemote;
70 - (void)clearHotKeys;
71 - (void)setupHotKeys;
72 - (void)closePreferences;
73
74 @end