Remove website, now in yukkurigames.com repository.
[enjoyable.git] / Classes / NJDeviceViewController.h
1 //
2 // NJDeviceViewController.h
3 // Enjoyable
4 //
5 // Created by Joe Wreschnig on 3/16/13.
6 //
7 //
8
9 @class NJDevice;
10 @class NJInput;
11 @class NJInputPathElement;
12
13 @protocol NJDeviceViewControllerDelegate;
14
15 @interface NJDeviceViewController : NSObject <NSOutlineViewDataSource,
16 NSOutlineViewDelegate>
17
18 @property (nonatomic, strong) IBOutlet NSOutlineView *inputsTree;
19 @property (nonatomic, strong) IBOutlet NSView *noDevicesNotice;
20 @property (nonatomic, strong) IBOutlet NSView *hidStoppedNotice;
21
22 @property (nonatomic, weak) IBOutlet id <NJDeviceViewControllerDelegate> delegate;
23
24 - (void)addedDevice:(NJDevice *)device atIndex:(NSUInteger)idx;
25 - (void)removedDeviceAtIndex:(NSUInteger)idx;
26
27 - (void)hidStarted;
28 - (void)hidStopped;
29
30 - (void)expandAndSelectItem:(NJInputPathElement *)item;
31
32 - (NJInput *)selectedHandler;
33
34 @end
35
36 @protocol NJDeviceViewControllerDelegate <NSObject>
37
38 - (NSInteger)numberOfDevicesInDeviceList:(NJDeviceViewController *)dvc;
39 - (NJDevice *)deviceViewController:(NJDeviceViewController *)dvc
40 deviceForIndex:(NSUInteger)idx;
41 - (NJInputPathElement *)deviceViewController:(NJDeviceViewController *)dvc
42 elementForUID:(NSString *)uid;
43
44
45 - (void)deviceViewController:(NJDeviceViewController *)dvc
46 didSelectDevice:(NJInputPathElement *)device;
47 - (void)deviceViewController:(NJDeviceViewController *)dvc
48 didSelectBranch:(NJInputPathElement *)handler;
49 - (void)deviceViewController:(NJDeviceViewController *)dvc
50 didSelectHandler:(NJInputPathElement *)handler;
51 - (void)deviceViewControllerDidSelectNothing:(NJDeviceViewController *)dvc;
52
53 @end