Plugin API changes
[MenuTunes.git] / MenuTunes.h
1 /*
2  *      MenuTunes
3  *  MenuTunes
4  *    App Controller Class
5  *
6  *  Original Author : Kent Sutherland <ksuther@ithinksw.com>
7  *   Responsibility : Kent Sutherland <ksuther@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 <StatusWindow.h>
21
22 //@class MenuTunesView;
23 @class PreferencesController, StatusWindow;
24
25 @interface MenuTunes : NSObject
26 {
27     ITStatusItem   *statusItem;
28     NSMenu         *menu;
29     ITMTRemote     *currentRemote;
30     NSMutableArray *remoteArray;
31     
32     //Used in updating the menu automatically
33     NSTimer *refreshTimer;
34     int      trackInfoIndex;
35     int      lastSongIndex;
36     int      lastPlaylistIndex;
37     BOOL     isPlayingRadio;
38     
39     ITMTRemotePlayerRunningStatus isAppRunning;
40     BOOL didHaveAlbumName;
41     BOOL didHaveArtistName; //Helper variable for creating the menu
42     
43     //For upcoming songs
44     NSMenuItem *upcomingSongsItem;
45     NSMenu     *upcomingSongsMenu;
46     
47     //For playlist selection
48     NSMenuItem *playlistItem;
49     NSMenu     *playlistMenu;
50     
51     //For EQ sets
52     NSMenuItem *eqItem;
53     NSMenu     *eqMenu;
54     
55     NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause'
56     
57     PreferencesController *prefsController;
58     StatusWindow *statusWindow; //Shows track info and upcoming songs.
59 }
60
61 - (void)remotePlayerLaunched:(NSNotification *)note;
62 - (void)remotePlayerTerminated:(NSNotification *)note;
63
64 - (void)registerDefaultsIfNeeded;
65 - (void)rebuildMenu;
66 - (void)clearHotKeys;
67 - (void)closePreferences;
68
69 @end