6 * Original Author : Kent Sutherland <ksuther@ithinksw.com>
7 * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
9 * Copyright (c) 2002-2003 iThink Software.
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>
22 //@class MenuTunesView;
23 @class PreferencesController, StatusWindow;
25 @interface MenuTunes : NSObject
27 ITStatusItem *statusItem;
29 ITMTRemote *currentRemote;
30 NSMutableArray *remoteArray;
32 //Used in updating the menu automatically
33 NSTimer *refreshTimer;
34 int trackInfoIndex, lastSongIndex;
38 BOOL didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu
41 NSMenuItem *upcomingSongsItem;
42 NSMenu *upcomingSongsMenu;
44 //For playlist selection
45 NSMenuItem *playlistItem;
52 NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause'
54 PreferencesController *prefsController;
55 StatusWindow *statusWindow; //Shows track info and upcoming songs.
58 - (void)registerDefaultsIfNeeded;
61 - (void)closePreferences;