blob: efe0b16f6a23ae445b7742d5bdf2cfafaf40079d [file] [log] [blame]
Alexander Afanasyev14b09482013-10-11 18:24:45 +02001/* -*- Mode: objc; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
Alexander Afanasyevb6392e32014-05-12 23:43:50 -07002/**
3 * Copyright (c) 2013-2014, Regents of the University of California,
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -07004 *
Alexander Afanasyevb6392e32014-05-12 23:43:50 -07005 * 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 Moiseenko1dc76da2013-09-30 11:53:36 -070021 */
22
23#import <Cocoa/Cocoa.h>
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070024#import "fib-table-controller.h"
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070025
26@interface PreferenceDelegate : NSObject
27{
28 IBOutlet NSWindow *preferencesPanel;
Alexander Afanasyevb6392e32014-05-12 23:43:50 -070029
Alexander Afanasyev1d794ce2013-10-22 12:48:30 -070030 IBOutlet NSView *generalSettingsView;
31 IBOutlet NSButton *checkAllowSoftwareUpdates;
32 IBOutlet NSButton *checkEnableHubDiscovery;
33 IBOutlet NSButton *checkShutdownNdndOnExit;
34
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070035 IBOutlet NSView *forwardingSettingsView;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070036 IBOutlet NSTableView *fibTableView;
Alexander Afanasyevb6392e32014-05-12 23:43:50 -070037
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070038 IBOutlet NSView *securitySettingsView;
Ilya Moiseenkoe7058e72013-10-02 15:56:45 -070039 IBOutlet NSView *testbedSettingsView;
Alexander Afanasyevb6392e32014-05-12 23:43:50 -070040
Ilya Moiseenko68192502013-09-30 14:27:48 -070041 IBOutlet NSPanel *prefixRegistrationSheet;
42 IBOutlet NSComboBox *tunnelCombobox;
43 IBOutlet NSTextField *namePrefixText;
44 IBOutlet NSTextField *endpointText;
Alexander Afanasyevb6392e32014-05-12 23:43:50 -070045
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070046 IBOutlet FibTableController *tableController;
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070047}
48
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070049-(IBAction)showPreferencesPanel:(id)sender;
50-(IBAction)openGeneralSettings:(id)sender;
51-(IBAction)openForwardingSettings:(id)sender;
52-(IBAction)openSecuritySettings:(id)sender;
53
Ilya Moiseenko68192502013-09-30 14:27:48 -070054-(IBAction)addFibEntry:(id)sender;
55-(IBAction)removeFibEntry:(id)sender;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070056-(IBAction)showFibEntrySheet:(id)sender;
Ilya Moiseenko68192502013-09-30 14:27:48 -070057-(IBAction)hideFibEntrySheet:(id)sender;
Ilya Moiseenkoe7058e72013-10-02 15:56:45 -070058
59-(IBAction)openRoutingStatusPage:(id)sender;
60-(IBAction)openTrafficMapPage:(id)sender;
Ilya Moiseenko0c9ab7c2013-10-29 15:08:23 -070061-(IBAction)openCertificationPage:(id)sender;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070062
63-(void)updateFibStatus:(NSXMLDocument*)status;
64
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070065@end