blob: 03022bd7b37d4beaffe174a118b462085e7d0eea [file] [log] [blame]
Alexander Afanasyev14b09482013-10-11 18:24:45 +02001/* -*- Mode: objc; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -07002/*
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 Moiseenkob4aca052013-10-06 15:10:19 -070010#import "fib-table-controller.h"
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070011
12@interface PreferenceDelegate : NSObject
13{
14 IBOutlet NSWindow *preferencesPanel;
15 IBOutlet NSView *generalSettingsView;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070016
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070017 IBOutlet NSView *forwardingSettingsView;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070018 IBOutlet NSTableView *fibTableView;
19
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070020 IBOutlet NSView *securitySettingsView;
Ilya Moiseenkoe7058e72013-10-02 15:56:45 -070021 IBOutlet NSView *testbedSettingsView;
Ilya Moiseenko68192502013-09-30 14:27:48 -070022
23 IBOutlet NSPanel *prefixRegistrationSheet;
24 IBOutlet NSComboBox *tunnelCombobox;
25 IBOutlet NSTextField *namePrefixText;
26 IBOutlet NSTextField *endpointText;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070027
28 IBOutlet FibTableController *tableController;
29 NSOperationQueue *m_operationQueue;
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070030}
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 Moiseenko68192502013-09-30 14:27:48 -070042
43-(IBAction)addFibEntry:(id)sender;
44-(IBAction)removeFibEntry:(id)sender;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070045-(IBAction)showFibEntrySheet:(id)sender;
Ilya Moiseenko68192502013-09-30 14:27:48 -070046-(IBAction)hideFibEntrySheet:(id)sender;
Ilya Moiseenkoe7058e72013-10-02 15:56:45 -070047
48-(IBAction)openRoutingStatusPage:(id)sender;
49-(IBAction)openTrafficMapPage:(id)sender;
Ilya Moiseenkob4aca052013-10-06 15:10:19 -070050
51-(void)updateFibStatus:(NSXMLDocument*)status;
52
Ilya Moiseenko1dc76da2013-09-30 11:53:36 -070053@end