X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/bad9de5ef29bebf5a0d07e8960b2a70a983bf86b..c99066bb8eb3a6f60be746f1ae150390dea4bd51:/MainController.h?ds=sidebyside diff --git a/MainController.h b/MainController.h index 8438c82..e1ad2a4 100755 --- a/MainController.h +++ b/MainController.h @@ -17,8 +17,11 @@ #import #import #import +#import "MTBlingController.h" -@class StatusWindowController, MenuController; +#define MT_CURRENT_VERSION 1300 + +@class StatusWindowController, MenuController, NetworkController; @interface MainController : NSObject { @@ -32,16 +35,30 @@ //Used in updating the menu automatically NSTimer *refreshTimer; NSString *_latestSongIdentifier; - + StatusWindowController *statusWindowController; //Shows status windows MenuController *menuController; + NetworkController *networkController; NSUserDefaults *df; + + MTBlingController *bling; + NSTimer *registerTimer; + BOOL timerUpdating, _checkingForServer, _popped; + BOOL blinged; + NSLock *_serverCheckLock; } + (MainController *)sharedController; - (void)menuClicked; //Methods called from MenuController by menu items +- (NSDate*)getBlingTime; +- (void)blingTime; +- (void)blingNow; +- (BOOL)blingBling; + +- (void)timerUpdate; + - (void)playPause; - (void)nextSong; - (void)prevSong; @@ -51,13 +68,31 @@ - (void)selectSongAtIndex:(int)index; - (void)selectSongRating:(int)rating; - (void)selectEQPresetAtIndex:(int)index; +- (void)showPlayer; - (void)showPreferences; +- (void)showTestWindow; - (void)quitMenuTunes; // +- (void)setServerStatus:(BOOL)newStatus; +- (int)connectToServer; +- (BOOL)disconnectFromServer; +- (void)checkForRemoteServerAndConnectImmediately:(BOOL)connectImmediately; +- (void)networkError:(NSException *)exception; + +// + - (ITMTRemote *)currentRemote; - (void)clearHotKeys; +- (void)setupHotKeys; - (void)closePreferences; +- (MenuController *)menuController; + +- (void)showCurrentTrackInfo; @end + +@interface NSImage (SmoothAdditions) +- (NSImage *)imageScaledSmoothlyToSize:(NSSize)scaledSize; +@end \ No newline at end of file