6 * Original Author : Kent Sutherland <ksuther@ithinksw.com>
7 * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
9 * Copyright (c) 2002 iThink Software.
15 #import <Cocoa/Cocoa.h>
16 #import <Carbon/Carbon.h>
17 #import <ITKit/ITKit.h>
19 //@class MenuTunesView;
20 @class PreferencesController, StatusWindowController;
22 @interface MenuTunes : NSObject
24 ITStatusItem *statusItem;
26 ComponentInstance asComponent;
28 //Used in updating the menu automatically
29 NSTimer *refreshTimer;
30 int curTrackIndex, curPlaylistIndex;
34 ProcessSerialNumber iTunesPSN;
35 bool didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu
38 NSMenuItem *upcomingSongsItem;
39 NSMenu *upcomingSongsMenu;
41 //For playlist selection
42 NSMenuItem *playlistItem;
49 NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause'
51 PreferencesController *prefsController;
52 StatusWindowController *statusController; //Shows track info and upcoming songs.
54 - (void)registerDefaultsIfNeeded;
57 - (ProcessSerialNumber)iTunesPSN;
58 - (void)closePreferences;