Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * @copyright See LICENCE for copyright and license information. |
| 4 | * |
| 5 | * @author Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 6 | * @author Ilya Moiseenko <iliamo@ucla.edu> |
| 7 | */ |
| 8 | |
| 9 | #import <Cocoa/Cocoa.h> |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame^] | 10 | #import "fib-table-controller.h" |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 11 | |
| 12 | @interface PreferenceDelegate : NSObject |
| 13 | { |
| 14 | IBOutlet NSWindow *preferencesPanel; |
| 15 | IBOutlet NSView *generalSettingsView; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame^] | 16 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 17 | IBOutlet NSView *forwardingSettingsView; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame^] | 18 | IBOutlet NSTableView *fibTableView; |
| 19 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 20 | IBOutlet NSView *securitySettingsView; |
Ilya Moiseenko | e7058e7 | 2013-10-02 15:56:45 -0700 | [diff] [blame] | 21 | IBOutlet NSView *testbedSettingsView; |
Ilya Moiseenko | 6819250 | 2013-09-30 14:27:48 -0700 | [diff] [blame] | 22 | |
| 23 | IBOutlet NSPanel *prefixRegistrationSheet; |
| 24 | IBOutlet NSComboBox *tunnelCombobox; |
| 25 | IBOutlet NSTextField *namePrefixText; |
| 26 | IBOutlet NSTextField *endpointText; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame^] | 27 | |
| 28 | IBOutlet FibTableController *tableController; |
| 29 | NSOperationQueue *m_operationQueue; |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | @property BOOL allowSoftwareUpdates; |
| 33 | @property BOOL enableHubDiscovery; |
| 34 | |
| 35 | -(IBAction)showPreferencesPanel:(id)sender; |
| 36 | -(IBAction)openGeneralSettings:(id)sender; |
| 37 | -(IBAction)openForwardingSettings:(id)sender; |
| 38 | -(IBAction)openSecuritySettings:(id)sender; |
| 39 | |
| 40 | -(IBAction)switchSoftwareUpdates:(id)sender; |
| 41 | -(IBAction)switchHubDiscovery:(id)sender; |
Ilya Moiseenko | 6819250 | 2013-09-30 14:27:48 -0700 | [diff] [blame] | 42 | |
| 43 | -(IBAction)addFibEntry:(id)sender; |
| 44 | -(IBAction)removeFibEntry:(id)sender; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame^] | 45 | -(IBAction)showFibEntrySheet:(id)sender; |
Ilya Moiseenko | 6819250 | 2013-09-30 14:27:48 -0700 | [diff] [blame] | 46 | -(IBAction)hideFibEntrySheet:(id)sender; |
Ilya Moiseenko | e7058e7 | 2013-10-02 15:56:45 -0700 | [diff] [blame] | 47 | |
| 48 | -(IBAction)openRoutingStatusPage:(id)sender; |
| 49 | -(IBAction)openTrafficMapPage:(id)sender; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame^] | 50 | |
| 51 | -(void)updateFibStatus:(NSXMLDocument*)status; |
| 52 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 53 | @end |