-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathController.h
More file actions
53 lines (33 loc) · 1.17 KB
/
Controller.h
File metadata and controls
53 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#import <Cocoa/Cocoa.h>
#import <Security/Security.h>
@protocol UI
- (NSString *)askPassphrase:(NSString *)question withToken:(NSString *)token andInteraction:(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;
}
+ (Controller *)sharedController;
- (void)setStatus:(BOOL)status;
- (void)setToolTip:(NSString *)tooltip;
- (IBAction)checkForUpdatesFromUI:(id)sender;
- (IBAction)preferences:(id)sender;
- (IBAction)toggleAppleKeychainLock:(id)sender;
- (NSString *)askPassphrase:(NSString *)question withToken:(NSString *)token andInteraction:(BOOL)interaction;
- (IBAction)showAboutPanel:(id)sender;
- (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message;
- (NSData *)statusbarMenu;
@end