#import #import #define remoteVersionURL @"http://www.sshkeychain.org/latestversion.xml" @protocol UI - (NSString *)askPassphrase:(NSString *)question withInteraction:(BOOL)interaction; - (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message; - (NSData *)statusbarMenu; @end @interface Controller : NSObject { IBOutlet id statusbarMenu; IBOutlet id dockMenuAppleKeychainItem; IBOutlet id statusbarMenuAppleKeychainItem; id passphraseRequester; BOOL passphraseIsRequested; BOOL appleKeychainUnlocked; NSStatusItem *statusitem; int timestamp; /* Locks */ NSLock *passphraseIsRequestedLock; NSLock *appleKeychainUnlockedLock; NSLock *statusitemLock; } + (id)currentController; - (void)setStatus:(BOOL)status; - (void)setToolTip:(NSString *)tooltip; - (IBAction)checkForUpdatesFromUI:(id)sender; - (void)checkForUpdatesWithWarnings:(BOOL)warnings; - (IBAction)preferences:(id)sender; - (IBAction)toggleAppleKeychainLock:(id)sender; - (NSString *)askPassphrase:(NSString *)question withInteraction:(BOOL)interaction; - (IBAction)showAboutPanel:(id)sender; - (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message; - (NSData *)statusbarMenu; @end