AppController.h 2.82 KB
Newer Older
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
#import <Cocoa/Cocoa.h>

#define USER_DEFAULT_BARCODE_S @"user.default.barcode.store"
#define USER_DEFAULT_MSR_S     @"user.default.msr.store"

@class AsyncSocket;

@interface AppController : NSObject
{
	AsyncSocket *listenSocket;
    AsyncSocket *acceptSocket;
	NSMutableArray *connectedSockets;
	
	BOOL isRunning;
	
    
    IBOutlet NSTabView *tabView ;
    
    IBOutlet NSTabViewItem *scanItem ;
    IBOutlet NSTabViewItem *barcodeItem ;
    IBOutlet NSTabViewItem *msrItem ;
    IBOutlet NSTabViewItem *mfgItem ; 
    IBOutlet NSButton *settingbutton ;
    IBOutlet NSButton *brConfigBtn ;
    IBOutlet NSButton *msrConfigBtn ; 
    
    
    IBOutlet NSTextView * logView;
    IBOutlet NSTextField *portField;
    IBOutlet NSButton *startStopButton;
    IBOutlet NSButton * ConnectButton;
    IBOutlet NSButton *DisConnectButton;
    IBOutlet NSButton * scanButton ;
    IBOutlet NSButton *swipButton ;
    
    //Barcode setting and storage.
	IBOutlet NSArrayController	*mybarcodeContentArray;
    IBOutlet NSTableView *barcodetableView ; 
    IBOutlet NSTextField *barcodeField;
    //MSR setting and storage.
    IBOutlet NSArrayController *myMSRContentArray ;
    IBOutlet NSTableView *msrTableView ;
    IBOutlet NSTextField *msrField ; 
    
    //MFG setting and storage.
    IBOutlet NSTextField *accessoryField ;
    IBOutlet NSTextField *ManufacturerField ;
    IBOutlet NSTextField *ModelNumberField ;
    IBOutlet NSTextField *SerialNumberField ;
    IBOutlet NSTextField *FirmwareRevField ;
    IBOutlet NSTextField *HardwareRevField ;
    IBOutlet NSTextField *SDKRevField ; 
    
}

//@property(nonatomic,retain) IBOutlet NSTextField * portField;
//
//@property(nonatomic,retain) IBOutlet NSButton *DisConnectButton;
//
//@property(nonatomic,retain) NSButton *ConnectButton ;


- (IBAction)startStop:(id)sender;

- (IBAction)scanAction:(id)sender ;

- (IBAction)SwipeCardAction:(id)sender ;

- (IBAction)NotificationConnectAction:(id)sender ;

- (IBAction)NotificationDisConnectAction:(id)sender ;

- (IBAction)setBarcodeData:(id)sender ;

- (IBAction)setMsrData:(id)sender ;


- (IBAction)settingAction:(id)sender ; 

//Barcode setting.
- (void)updateClientBarcodelist:(NSString*)barcodelist ; 
- (IBAction)AddnewBarContentcode:(id)sender ;
- (IBAction)RemoveBarContentcode:(id)sender ;
- (IBAction)barcodeConfigAction:(id)sender ;
//msr setting
- (void)updateClientMSRList:(NSString*)msrList;
- (IBAction)AddnewMSRContent:(id)sender ;
- (IBAction)RemoveMSRContent:(id)sender ;
- (IBAction)msrConfigAction:(id)sender ;
//MFG configure.

- (IBAction)setAccessoryname:(id)sender;

- (IBAction)setManufacture:(id)sender ;

- (IBAction)setModelNumber:(id)sender ;

- (IBAction)setSerialNumber:(id)sender ;

- (IBAction)setFirmwareRev:(id)sender ;

-(IBAction)setHardwareRev:(id)sender ;

- (IBAction)setSDKRev:(id)sender ;


- (IBAction)configureMFG:(id)sender ; 

@end