|
Revision 118, 1.2 kB
(checked in by bart, 1 year ago)
|
--
|
| Line | |
|---|
| 1 |
#import <Cocoa/Cocoa.h> |
|---|
| 2 |
#import <Security/Security.h> |
|---|
| 3 |
|
|---|
| 4 |
@protocol UI |
|---|
| 5 |
|
|---|
| 6 |
- (NSString *)askPassphrase:(NSString *)question withToken:(NSString *)token andInteraction:(BOOL)interaction; |
|---|
| 7 |
- (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message; |
|---|
| 8 |
- (NSData *)statusbarMenu; |
|---|
| 9 |
|
|---|
| 10 |
@end |
|---|
| 11 |
|
|---|
| 12 |
@interface Controller : NSObject |
|---|
| 13 |
{ |
|---|
| 14 |
IBOutlet id statusbarMenu; |
|---|
| 15 |
|
|---|
| 16 |
IBOutlet id dockMenuAppleKeychainItem; |
|---|
| 17 |
IBOutlet id statusbarMenuAppleKeychainItem; |
|---|
| 18 |
|
|---|
| 19 |
id passphraseRequester; |
|---|
| 20 |
|
|---|
| 21 |
BOOL passphraseIsRequested; |
|---|
| 22 |
BOOL appleKeychainUnlocked; |
|---|
| 23 |
|
|---|
| 24 |
NSStatusItem *statusitem; |
|---|
| 25 |
|
|---|
| 26 |
int timestamp; |
|---|
| 27 |
|
|---|
| 28 |
/* Locks */ |
|---|
| 29 |
NSLock *passphraseIsRequestedLock; |
|---|
| 30 |
NSLock *appleKeychainUnlockedLock; |
|---|
| 31 |
NSLock *statusitemLock; |
|---|
| 32 |
|
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
+ (Controller *)sharedController; |
|---|
| 36 |
|
|---|
| 37 |
- (void)setStatus:(BOOL)status; |
|---|
| 38 |
- (void)setToolTip:(NSString *)tooltip; |
|---|
| 39 |
|
|---|
| 40 |
- (IBAction)checkForUpdatesFromUI:(id)sender; |
|---|
| 41 |
- (IBAction)preferences:(id)sender; |
|---|
| 42 |
|
|---|
| 43 |
- (IBAction)toggleAppleKeychainLock:(id)sender; |
|---|
| 44 |
|
|---|
| 45 |
- (NSString *)askPassphrase:(NSString *)question withToken:(NSString *)token andInteraction:(BOOL)interaction; |
|---|
| 46 |
|
|---|
| 47 |
- (IBAction)showAboutPanel:(id)sender; |
|---|
| 48 |
|
|---|
| 49 |
- (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message; |
|---|
| 50 |
|
|---|
| 51 |
- (NSData *)statusbarMenu; |
|---|
| 52 |
|
|---|
| 53 |
@end |
|---|