X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/35486a7ded93b3e89a6b03ec1dbe801f3dfe0edc..479952e2cf104d1f984108c5b672d8fbb039eebe:/MenuTunes.h diff --git a/MenuTunes.h b/MenuTunes.h index 466c4e4..e45925a 100755 --- a/MenuTunes.h +++ b/MenuTunes.h @@ -24,30 +24,37 @@ @interface MenuTunes : NSObject { - ITStatusItem *statusItem; - NSMenu *menu; - ITMTRemote *currentRemote; + ITStatusItem *statusItem; + NSMenu *menu; + ITMTRemote *currentRemote; NSMutableArray *remoteArray; //Used in updating the menu automatically NSTimer *refreshTimer; - int trackInfoIndex, lastSongIndex, lastPlaylistIndex; - BOOL isPlayingRadio; + int trackInfoIndex; + int lastSongIndex; + int lastPlaylistIndex; + BOOL isPlayingRadio; - BOOL isAppRunning; - BOOL didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu + ITMTRemotePlayerRunningState isAppRunning; + BOOL didHaveAlbumName; + BOOL didHaveArtistName; //Helper variable for creating the menu //For upcoming songs NSMenuItem *upcomingSongsItem; - NSMenu *upcomingSongsMenu; + NSMenu *upcomingSongsMenu; //For playlist selection NSMenuItem *playlistItem; - NSMenu *playlistMenu; + NSMenu *playlistMenu; //For EQ sets NSMenuItem *eqItem; - NSMenu *eqMenu; + NSMenu *eqMenu; + + //For song ratings + NSMenuItem *songRatingMenuItem; + NSMenu *ratingMenu; NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause' @@ -55,12 +62,19 @@ StatusWindow *statusWindow; //Shows track info and upcoming songs. } -- (void)iTunesLaunched:(NSNotification *)note; -- (void)iTunesTerminated:(NSNotification *)note; +- (void)remotePlayerLaunched:(NSNotification *)note; +- (void)remotePlayerTerminated:(NSNotification *)note; - (void)registerDefaultsIfNeeded; - (void)rebuildMenu; + +- (void)runTimerInNewThread; + +- (void)setSongRating:(id)sender; + - (void)clearHotKeys; - (void)closePreferences; +- (void)showPlayer; + @end