| 1 |
#import <Cocoa/Cocoa.h> |
|---|
| 2 |
#import <Security/Security.h> |
|---|
| 3 |
|
|---|
| 4 |
#import "Libs/SSHAgent.h" |
|---|
| 5 |
#import "Libs/SSHKeychain.h" |
|---|
| 6 |
|
|---|
| 7 |
@interface AgentController : NSObject |
|---|
| 8 |
{ |
|---|
| 9 |
IBOutlet id agentStatusWindow, keyTable, delKeyButton; |
|---|
| 10 |
IBOutlet id agentPID, agentGlobalAuthSocket, agentLocalAuthSocket; |
|---|
| 11 |
IBOutlet id mainMenuAgentItem, dockMenuAgentItem, statusbarMenuAgentItem; |
|---|
| 12 |
IBOutlet id mainMenuRemoveKeysItem, dockMenuRemoveKeysItem, statusbarMenuRemoveKeysItem; |
|---|
| 13 |
IBOutlet id mainMenuAddKeysItem, dockMenuAddKeysItem, statusbarMenuAddKeysItem; |
|---|
| 14 |
IBOutlet id mainMenuAddKeyItem, dockMenuAddKeyItem, statusbarMenuAddKeyItem; |
|---|
| 15 |
|
|---|
| 16 |
SSHAgent *agent; |
|---|
| 17 |
SSHKeychain *keychain; |
|---|
| 18 |
|
|---|
| 19 |
int timestamp; |
|---|
| 20 |
|
|---|
| 21 |
BOOL allKeysOnAgent; |
|---|
| 22 |
|
|---|
| 23 |
/* Locks */ |
|---|
| 24 |
NSLock *allKeysOnAgentLock; |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
+ (AgentController *)sharedController; |
|---|
| 28 |
|
|---|
| 29 |
- (IBAction)toggleAgent:(id)sender; |
|---|
| 30 |
- (IBAction)addKeysToAgent:(id)sender; |
|---|
| 31 |
- (IBAction)addSingleKeyToAgent:(id)sender; |
|---|
| 32 |
- (IBAction)removeKeysFromAgent:(id)sender; |
|---|
| 33 |
|
|---|
| 34 |
- (IBAction)showAgentStatusWindow:(id)sender; |
|---|
| 35 |
- (void)updateUI; |
|---|
| 36 |
|
|---|
| 37 |
- (BOOL)checkSocketPath:(NSString *)path; |
|---|
| 38 |
- (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message; |
|---|
| 39 |
- (void)warningPanelWithTitle:(NSString *)title andMessage:(NSString *)message inMainThread:(BOOL)thread; |
|---|
| 40 |
|
|---|
| 41 |
@end |
|---|