Did some tinkering, nothing really useful done though. Removed a useless
[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, NetworkController;
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     NetworkController *networkController;
40     NSUserDefaults *df;
41     
42     MTBlingController *bling;
43     NSTimer *registerTimer;
44     BOOL timerUpdating;
45     BOOL blinged;
46 }
47 + (MainController *)sharedController;
48
49 - (void)menuClicked;
50
51 //Methods called from MenuController by menu items
52 - (NSDate*)getBlingTime;
53 - (void)blingTime;
54 - (void)blingNow;
55 - (BOOL)blingBling;
56
57 - (void)playPause;
58 - (void)nextSong;
59 - (void)prevSong;
60 - (void)fastForward;
61 - (void)rewind;
62 - (void)selectPlaylistAtIndex:(int)index;
63 - (void)selectSongAtIndex:(int)index;
64 - (void)selectSongRating:(int)rating;
65 - (void)selectEQPresetAtIndex:(int)index;
66 - (void)showPlayer;
67 - (void)showPreferences;
68 - (void)showTestWindow;
69 - (void)quitMenuTunes;
70
71 //
72
73 - (void)setServerStatus:(BOOL)newStatus;
74 - (int)connectToServer;
75 - (BOOL)disconnectFromServer;
76 - (void)networkError:(NSException *)exception;
77
78 //
79
80 - (ITMTRemote *)currentRemote;
81 - (void)clearHotKeys;
82 - (void)setupHotKeys;
83 - (void)closePreferences;
84
85 - (void)showCurrentTrackInfo;
86
87 @end