Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (55 sloc) 2.098 kb
aeee234 @mschrag SpeedLimit initial commit
authored
1 //
2 // SpeedLimitPref.h
3 // SpeedLimit
4 //
5 // Created by Michael Schrag on 8/27/08.
6 // Copyright (c) 2008 m Dimension Technology. All rights reserved.
7 //
8
9 #import <PreferencePanes/PreferencePanes.h>
0950458 Added SFAuthorizationView to enable lock/unlock interface
Jesse Armand authored
10 #import <SecurityInterface/SFAuthorizationView.h>
aeee234 @mschrag SpeedLimit initial commit
authored
11 #import "Speed.h"
12
13 @interface SpeedLimitPref : NSPreferencePane {
14 NSString *delay;
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
15 NSString *hosts;
aeee234 @mschrag SpeedLimit initial commit
authored
16 Speed *speed;
17 NSArray *rules;
18 BOOL slow;
37e8eb6 @protocool Add option for packet loss ratio and dropped packet error suppression
protocool authored
19 double packetLossRatio;
20 BOOL packetLossErrorSuppress;
aeee234 @mschrag SpeedLimit initial commit
authored
21
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
22 NSArrayController *speedsController;
23 NSArrayController *portsController;
24 NSTextField *speedLimitLabel;
0950458 Added SFAuthorizationView to enable lock/unlock interface
Jesse Armand authored
25 NSTableView *portsView;
26 NSTextField *hostsTextField;
27 NSTextField *delayTextField;
28 NSPopUpButton *speedsPopUpButton;
29 NSButton *addButton;
30 NSButton *removeButton;
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
31 NSButton *startStopButton;
aeee234 @mschrag SpeedLimit initial commit
authored
32
33 AuthorizationRef authorizationRef;
0950458 Added SFAuthorizationView to enable lock/unlock interface
Jesse Armand authored
34
35 NSInteger authorizationState;
36 SFAuthorizationView *authorizationView;
aeee234 @mschrag SpeedLimit initial commit
authored
37 }
38
39 @property (readwrite, retain) NSString *delay;
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
40 @property (readwrite, retain) NSString *hosts;
aeee234 @mschrag SpeedLimit initial commit
authored
41 @property (readwrite, retain) Speed *speed;
42 @property (readwrite, retain) NSArray *rules;
43 @property (readwrite, assign) BOOL slow;
37e8eb6 @protocool Add option for packet loss ratio and dropped packet error suppression
protocool authored
44 @property (readwrite, assign) double packetLossRatio;
45 @property (readwrite, assign) BOOL packetLossErrorSuppress;
aeee234 @mschrag SpeedLimit initial commit
authored
46
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
47 @property (readwrite, retain) IBOutlet NSArrayController *speedsController;
48 @property (readwrite, retain) IBOutlet NSArrayController *portsController;
49 @property (readwrite, retain) IBOutlet NSTextField *speedLimitLabel;
0950458 Added SFAuthorizationView to enable lock/unlock interface
Jesse Armand authored
50 @property (readwrite, retain) IBOutlet NSTableView *portsView;
51 @property (readwrite, retain) IBOutlet NSTextField *hostsTextField;
52 @property (readwrite, retain) IBOutlet NSTextField *delayTextField;
53 @property (readwrite, retain) IBOutlet NSPopUpButton *speedsPopUpButton;
54 @property (readwrite, retain) IBOutlet NSButton *addButton;
55 @property (readwrite, retain) IBOutlet NSButton *removeButton;
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
56 @property (readwrite, retain) IBOutlet NSButton *startStopButton;
0950458 Added SFAuthorizationView to enable lock/unlock interface
Jesse Armand authored
57 @property (readwrite, retain) IBOutlet SFAuthorizationView *authorizationView;
2b39c1e @mschrag Added support for restricting slowdown to particular hostss
authored
58
aeee234 @mschrag SpeedLimit initial commit
authored
59 -(void) mainViewDidLoad;
60
61 -(IBAction)addPort:(id)sender;
62 -(IBAction)removePort:(id)sender;
63 -(IBAction)toggle:(id)sender;
64
65 @end
Something went wrong with that request. Please try again.