Adding loads of neato registration stuff!
[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 }
44 + (MainController *)sharedController;
45
46 - (void)menuClicked;
47
48 //Methods called from MenuController by menu items
49 - (void)blingTime;
50 - (void)blingNow;
51 - (BOOL)blingBling;
52
53 - (void)playPause;
54 - (void)nextSong;
55 - (void)prevSong;
56 - (void)fastForward;
57 - (void)rewind;
58 - (void)selectPlaylistAtIndex:(int)index;
59 - (void)selectSongAtIndex:(int)index;
60 - (void)selectSongRating:(int)rating;
61 - (void)selectEQPresetAtIndex:(int)index;
62 - (void)showPlayer;
63 - (void)showPreferences;
64 - (void)quitMenuTunes;
65
66 //
67
68 - (ITMTRemote *)currentRemote;
69 - (void)clearHotKeys;
70 - (void)setupHotKeys;
71 - (void)closePreferences;
72
73 @end