-
Notifications
You must be signed in to change notification settings - Fork 69
/
SpeedLimitPref.h
65 lines (55 loc) · 2.05 KB
/
SpeedLimitPref.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
//
// SpeedLimitPref.h
// SpeedLimit
//
// Created by Michael Schrag on 8/27/08.
// Copyright (c) 2008 m Dimension Technology. All rights reserved.
//
#import <PreferencePanes/PreferencePanes.h>
#import <SecurityInterface/SFAuthorizationView.h>
#import "Speed.h"
@interface SpeedLimitPref : NSPreferencePane {
NSString *delay;
NSString *hosts;
Speed *speed;
NSArray *rules;
BOOL slow;
double packetLossRatio;
BOOL packetLossErrorSuppress;
NSArrayController *speedsController;
NSArrayController *portsController;
NSTextField *speedLimitLabel;
NSTableView *portsView;
NSTextField *hostsTextField;
NSTextField *delayTextField;
NSPopUpButton *speedsPopUpButton;
NSButton *addButton;
NSButton *removeButton;
NSButton *startStopButton;
AuthorizationRef authorizationRef;
NSInteger authorizationState;
SFAuthorizationView *authorizationView;
}
@property (readwrite, retain) NSString *delay;
@property (readwrite, retain) NSString *hosts;
@property (readwrite, retain) Speed *speed;
@property (readwrite, retain) NSArray *rules;
@property (readwrite, assign) BOOL slow;
@property (readwrite, assign) double packetLossRatio;
@property (readwrite, assign) BOOL packetLossErrorSuppress;
@property (readwrite, retain) IBOutlet NSArrayController *speedsController;
@property (readwrite, retain) IBOutlet NSArrayController *portsController;
@property (readwrite, retain) IBOutlet NSTextField *speedLimitLabel;
@property (readwrite, retain) IBOutlet NSTableView *portsView;
@property (readwrite, retain) IBOutlet NSTextField *hostsTextField;
@property (readwrite, retain) IBOutlet NSTextField *delayTextField;
@property (readwrite, retain) IBOutlet NSPopUpButton *speedsPopUpButton;
@property (readwrite, retain) IBOutlet NSButton *addButton;
@property (readwrite, retain) IBOutlet NSButton *removeButton;
@property (readwrite, retain) IBOutlet NSButton *startStopButton;
@property (readwrite, retain) IBOutlet SFAuthorizationView *authorizationView;
-(void) mainViewDidLoad;
-(IBAction)addPort:(id)sender;
-(IBAction)removePort:(id)sender;
-(IBAction)toggle:(id)sender;
@end