This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
forked from pavel-a/CoreWLANWirelessManager2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoreWLANController.h
109 lines (95 loc) · 3.38 KB
/
CoreWLANController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
//
// CoreWLANController.h
// CoreWLANWirelessManager example app
//
// File: CoreWLANController.h
// Abstract: Controller class for the CoreWLANWirelessManager application.
// Version: 2.0
//
@class CWInterface, CWConfiguration, CWNetwork, SFAuthorizationView;
@interface CoreWLANController : NSObject <NSApplicationDelegate, NSTableViewDelegate, NSTableViewDataSource>
{
CWWiFiClient *wifiClient;
CWInterface *currentInterface;
NSMutableArray *scanResults;
CWConfiguration *configurationSession;
BOOL joinDialogContext;
// main window
IBOutlet NSPopUpButton *supportedInterfacesPopup;
IBOutlet NSButton *refreshButton;
IBOutlet NSProgressIndicator *refreshSpinner;
IBOutlet NSTabView *tabView;
IBOutlet NSWindow *mainWindow;
// interface info tab
IBOutlet NSTextField *supportedChannelsField;
IBOutlet NSTextField *supportedPHYModesField;
IBOutlet NSTextField *countryCodeField;
IBOutlet NSSegmentedControl *powerStateControl;
IBOutlet NSPopUpButton *channelPopup;
IBOutlet NSTextField *opModeField;
IBOutlet NSTextField *txPowerField;
IBOutlet NSTextField *rssiField;
IBOutlet NSTextField *noiseField;
IBOutlet NSTextField *ssidField;
IBOutlet NSTextField *securityModeField;
IBOutlet NSTextField *bssidField;
IBOutlet NSTextField *phyModeField;
IBOutlet NSTextField *txRateField;
IBOutlet NSButton *disconnectButton;
// scan tab
IBOutlet NSTableView *scanResultsTable;
IBOutlet NSButton *joinButton;
IBOutlet NSButton *mergeScanResultsCheckbox;
NSTableColumn *ssidColumn;
NSTableColumn *bssidColumn;
NSTableColumn *channelColumn;
NSTableColumn *phyModeColumn;
NSTableColumn *securityModeColumn;
NSTableColumn *ibssColumn;
NSTableColumn *rssiColumn;
// join dialog
CWNetwork *selectedNetwork;
IBOutlet NSWindow *joinDialogWindow;
IBOutlet NSButton *joinOKButton;
IBOutlet NSButton *joinCancelButton;
IBOutlet NSPopUpButton *joinSecurityPopupButton;
IBOutlet NSPopUpButton *joinUser8021XProfilePopupButton;
IBOutlet NSProgressIndicator *joinSpinner;
IBOutlet NSTextField *joinNetworkNameField;
IBOutlet NSTextField *joinUsernameField;
IBOutlet NSSecureTextField *joinPassphraseField;
// ibss dialog
IBOutlet NSWindow *ibssDialogWindow;
IBOutlet NSButton *ibssOKButton;
IBOutlet NSButton *ibssCancelButton;
IBOutlet NSTextField *ibssNetworkNameField;
IBOutlet NSTextField *ibssPassphraseField;
IBOutlet NSPopUpButton *ibssChannelPopupButton;
IBOutlet NSProgressIndicator *ibssSpinner;
}
@property(readwrite, retain) CWWiFiClient *wifiClient;
@property(readwrite, retain) CWInterface *currentInterface;
@property(readwrite, retain) NSMutableArray *scanResults;
@property(readwrite, retain) CWNetwork *selectedNetwork;
@property(readwrite, assign) BOOL joinDialogContext;
#pragma mark -
#pragma mark IBAction Methods
// application window
- (IBAction)interfaceSelected:(id)sender;
- (IBAction)refreshPressed:(id)sender;
// interface info tab
- (IBAction)changePower:(id)sender;
- (IBAction)changeChannel:(id)sender;
- (IBAction)disconnect:(id)sender;
// scan tab
- (IBAction)joinButtonPressed:(id)sender;
- (IBAction)createIBSSButtonPressed:(id)sender;
// join dialog
- (IBAction)changeSecurityMode:(id)sender;
- (IBAction)change8021XProfile:(id)sender;
- (IBAction)joinOKButtonPressed:(id)sender;
- (IBAction)joinCancelButtonPressed:(id)sender;
// ibss dialog
- (IBAction)ibssOKButtonPressed:(id)sender;
- (IBAction)ibssCancelButtonPressed:(id)sender;
@end