-
Notifications
You must be signed in to change notification settings - Fork 1
/
pppoeGUI.h
executable file
·68 lines (62 loc) · 1.63 KB
/
pppoeGUI.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
#import <Cocoa/Cocoa.h>
typedef enum _TitleStatus {
kUnknownTitle = 0,
kConnectTitle = 1,
kCancelTitle = 2,
kDisconnectTitle = 3
} TitleStatus;
typedef enum _PPPStatus {
kPPPInvalid = 0,
kPPPDisconnected = 1,
kPPPConnecting = 2,
kPPPConnected = 3
} PPPStatus;
typedef enum _PPPCMD {
kPPPConnect = 0,
kPPPDisconnect = 1
} PPPCMD;
typedef struct _Parameters {
char* uName;
char* pwd;
char* sName;
int connectType;
PPPCMD cmd;
} DialParas;
@interface pppoeGUI:NSObject {
IBOutlet NSButton* acCheckBox;
IBOutlet NSButton* cButton;
IBOutlet NSProgressIndicator* pBar;
IBOutlet NSTextField* pwdTF;
IBOutlet NSTextField* sNameTF;
IBOutlet NSTextField* statusTF;
IBOutlet NSTextField* uNameTF;
// add for airport begin
IBOutlet NSButton* eRadioButton;
IBOutlet NSButton* aRadioButton;
// add for airport endl
// add for update begin
IBOutlet NSTextField* updateAction;
IBOutlet NSTextField* updateLabel;
// add for update endl
NSOperationQueue* queue;
TitleStatus tStatus;
PPPStatus pppStatus;
NSTimer *theTimer;
int count;
}
- (IBAction)cButtonAction:(id)sender;
// add for airport begin
- (IBAction)ethernetAction:(id)sender;
- (IBAction)airportAction:(id)sender;
// add for airport endl
- (void)theTimerControl:(NSTimer*)aTimer;
- (IBAction)qButtonAction:(id)sender;
- (IBAction)helpAction:(id)sender;
- (void)addOperation:(PPPCMD)cmd;
- (void)settingRestore;
- (void)settingSave;
+ (id)shared;
- (void)setPPPStatus:(NSNumber*)num;
-(NSAttributedString *)stringFromHTML:(NSString *)html withFont:(NSFont *)font;
- (void)checkUpdate:(const NSString *)url version:(int)currVesion;
@end