-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDeviceRequesterAppDelegate.h
53 lines (46 loc) · 1.68 KB
/
DeviceRequesterAppDelegate.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
#import <Cocoa/Cocoa.h>
@interface USBDeviceRequesterAppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *window;
NSTableView *deviceTable;
NSTextField *deviceVID;
NSTextField *devicePID;
NSPopUpButton *requestType;
NSPopUpButton *requestRecipient;
NSTextField *bRequest;
NSTextField *wValue;
NSTextField *wIndex;
NSTextField *dataSize;
NSTextField *memData;
NSBox *requestBox;
NSButton *setButton;
NSButton *getButton;
NSButton *resetButton;
NSMutableArray *deviceArray;
io_iterator_t gNewDeviceAddedIter;
io_iterator_t gNewDeviceRemovedIter;
IONotificationPortRef gNotifyPort;
CFMutableDictionaryRef classToMatch;
}
@property (assign) IBOutlet NSWindow *window;
@property (assign) IBOutlet NSTableView *deviceTable;
@property (assign) IBOutlet NSTextField *deviceVID;
@property (assign) IBOutlet NSTextField *devicePID;
@property (assign) IBOutlet NSTextField *bRequest;
@property (assign) IBOutlet NSTextField *wValue;
@property (assign) IBOutlet NSTextField *wIndex;
@property (assign) IBOutlet NSTextField *dataSize;
@property (assign) IBOutlet NSTextField *memData;
@property (assign) IBOutlet NSBox *requestBox;
@property (assign) IBOutlet NSButton *setButton;
@property (assign) IBOutlet NSButton *getButton;
@property (assign) IBOutlet NSButton *resetButton;
@property (assign) IBOutlet NSPopUpButton *requestType;
@property (assign) IBOutlet NSPopUpButton *requestRecipient;
- (void) deviceAdded: (io_iterator_t) iterator;
- (void) deviceRemoved: (io_iterator_t) iterator;
- (void) setDeviceEnabled: (BOOL) en;
- (IBAction) selectDevice: (id) sender;
- (IBAction) setData: (id) sender;
- (IBAction) getData: (id) sender;
- (IBAction) resetDevice: (id) sender;
@end