Lots of rewritten code. Not yet working because the status item doesn't
[MenuTunes.git] / OldMainController.h
index 252ae3a..449eb4d 100755 (executable)
 #import <ITMTRemote/ITMTRemote.h>
 #import <StatusWindow.h>
 
-//@class MenuTunesView;
 @class PreferencesController, StatusWindow;
 
 @interface MainController : NSObject
 {
     ITStatusItem   *statusItem;
-    NSMenu         *menu;
     ITMTRemote     *currentRemote;
     NSMutableArray *remoteArray;
     
     BOOL     isPlayingRadio;
     
     ITMTRemotePlayerRunningState isAppRunning;
-    BOOL didHaveAlbumName;
-    BOOL didHaveArtistName; //Helper variable for creating the menu
-    
-    //For upcoming songs
-    NSMenuItem *upcomingSongsItem;
-    NSMenu     *upcomingSongsMenu;
-    
-    //For playlist selection
-    NSMenuItem *playlistItem;
-    NSMenu     *playlistMenu;
-    
-    //For EQ sets
-    NSMenuItem *eqItem;
-    NSMenu     *eqMenu;
-    
-    //For song ratings
-    NSMenuItem *songRatingMenuItem;
-    NSMenu *ratingMenu;
-    
-    NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause'
     
     PreferencesController *prefsController;
     StatusWindow *statusWindow; //Shows track info and upcoming songs.
 }
 
-- (void)remotePlayerLaunched:(NSNotification *)note;
-- (void)remotePlayerTerminated:(NSNotification *)note;
-
-- (void)registerDefaultsIfNeeded;
-- (void)rebuildMenu;
+- (void)applicationLaunched:(NSNotification *)note;
+- (void)applicationTerminated:(NSNotification *)note;
 
-- (void)runTimerInNewThread;
+- (void)registerDefaults;
 
-- (void)setSongRating:(id)sender;
+- (void)startTimerInNewThread;
 
 - (void)clearHotKeys;
 - (void)closePreferences;
 
-- (void)showPlayer;
+- (void)showPlayer:(id)sender;
 
 @end