Alexander Afanasyev | 14b0948 | 2013-10-11 18:24:45 +0200 | [diff] [blame] | 1 | /* -*- Mode: objc; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame^] | 2 | /** |
| 3 | * Copyright (c) 2013-2014, Regents of the University of California, |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 4 | * |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame^] | 5 | * This file is part of NFD Control Center. See AUTHORS.md for complete list of NFD |
| 6 | * authors and contributors. |
| 7 | * |
| 8 | * NFD Control Center is free software: you can redistribute it and/or modify it under the |
| 9 | * terms of the GNU General Public License as published by the Free Software Foundation, |
| 10 | * either version 3 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * NFD Control Center is distributed in the hope that it will be useful, but WITHOUT ANY |
| 13 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 14 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along with NFD |
| 17 | * Control Center, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * \author Alexander Afanasyev <http://lasr.cs.ucla.edu/afanasyev/index.html> |
| 20 | * \author Ilya Moiseenko <http://ilyamoiseenko.com/> |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 21 | */ |
| 22 | |
| 23 | #import <Cocoa/Cocoa.h> |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame] | 24 | #import "fib-table-controller.h" |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 25 | |
| 26 | @interface PreferenceDelegate : NSObject |
| 27 | { |
| 28 | IBOutlet NSWindow *preferencesPanel; |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame^] | 29 | |
Alexander Afanasyev | 1d794ce | 2013-10-22 12:48:30 -0700 | [diff] [blame] | 30 | IBOutlet NSView *generalSettingsView; |
| 31 | IBOutlet NSButton *checkAllowSoftwareUpdates; |
| 32 | IBOutlet NSButton *checkEnableHubDiscovery; |
| 33 | IBOutlet NSButton *checkShutdownNdndOnExit; |
| 34 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 35 | IBOutlet NSView *forwardingSettingsView; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame] | 36 | IBOutlet NSTableView *fibTableView; |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame^] | 37 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 38 | IBOutlet NSView *securitySettingsView; |
Ilya Moiseenko | e7058e7 | 2013-10-02 15:56:45 -0700 | [diff] [blame] | 39 | IBOutlet NSView *testbedSettingsView; |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame^] | 40 | |
Ilya Moiseenko | 6819250 | 2013-09-30 14:27:48 -0700 | [diff] [blame] | 41 | IBOutlet NSPanel *prefixRegistrationSheet; |
| 42 | IBOutlet NSComboBox *tunnelCombobox; |
| 43 | IBOutlet NSTextField *namePrefixText; |
| 44 | IBOutlet NSTextField *endpointText; |
Alexander Afanasyev | b6392e3 | 2014-05-12 23:43:50 -0700 | [diff] [blame^] | 45 | |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame] | 46 | IBOutlet FibTableController *tableController; |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 47 | } |
| 48 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 49 | -(IBAction)showPreferencesPanel:(id)sender; |
| 50 | -(IBAction)openGeneralSettings:(id)sender; |
| 51 | -(IBAction)openForwardingSettings:(id)sender; |
| 52 | -(IBAction)openSecuritySettings:(id)sender; |
| 53 | |
Ilya Moiseenko | 6819250 | 2013-09-30 14:27:48 -0700 | [diff] [blame] | 54 | -(IBAction)addFibEntry:(id)sender; |
| 55 | -(IBAction)removeFibEntry:(id)sender; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame] | 56 | -(IBAction)showFibEntrySheet:(id)sender; |
Ilya Moiseenko | 6819250 | 2013-09-30 14:27:48 -0700 | [diff] [blame] | 57 | -(IBAction)hideFibEntrySheet:(id)sender; |
Ilya Moiseenko | e7058e7 | 2013-10-02 15:56:45 -0700 | [diff] [blame] | 58 | |
| 59 | -(IBAction)openRoutingStatusPage:(id)sender; |
| 60 | -(IBAction)openTrafficMapPage:(id)sender; |
Ilya Moiseenko | 0c9ab7c | 2013-10-29 15:08:23 -0700 | [diff] [blame] | 61 | -(IBAction)openCertificationPage:(id)sender; |
Ilya Moiseenko | b4aca05 | 2013-10-06 15:10:19 -0700 | [diff] [blame] | 62 | |
| 63 | -(void)updateFibStatus:(NSXMLDocument*)status; |
| 64 | |
Ilya Moiseenko | 1dc76da | 2013-09-30 11:53:36 -0700 | [diff] [blame] | 65 | @end |