X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJDeviceViewController.h;h=0a16e477f0954d59d26f1d406433a581a58fa61a;hp=9e1a43f3f3528d010f367278b75a788b0a09d583;hb=6a7c78afa7b8a34901f59a79afe41d18855734bc;hpb=58ce8f7f50f382f18e7b416eca737803af284868 diff --git a/Classes/NJDeviceViewController.h b/Classes/NJDeviceViewController.h index 9e1a43f..0a16e47 100644 --- a/Classes/NJDeviceViewController.h +++ b/Classes/NJDeviceViewController.h @@ -7,6 +7,7 @@ // @class NJDevice; +@class NJInput; @class NJInputPathElement; @protocol NJDeviceViewControllerDelegate; @@ -20,30 +21,33 @@ @property (nonatomic, weak) IBOutlet id delegate; -@property (nonatomic, copy) NSArray *devices; - // Assigning directly will trigger a full reload. - - (void)addedDevice:(NJDevice *)device atIndex:(NSUInteger)idx; -- (void)removedDevice:(NJDevice *)device atIndex:(NSUInteger)idx; - // But using these will animate nicely. +- (void)removedDeviceAtIndex:(NSUInteger)idx; - (void)hidStarted; - (void)hidStopped; - (void)expandAndSelectItem:(NJInputPathElement *)item; -- (NJInputPathElement *)selectedHandler; +- (NJInput *)selectedHandler; @end @protocol NJDeviceViewControllerDelegate -- (void)deviceViewController:(NJDeviceViewController *)devices +- (NSInteger)numberOfDevicesInDeviceList:(NJDeviceViewController *)dvc; +- (NJDevice *)deviceViewController:(NJDeviceViewController *)dvc + deviceForIndex:(NSUInteger)idx; +- (NJInputPathElement *)deviceViewController:(NJDeviceViewController *)dvc + elementForUID:(NSString *)uid; + + +- (void)deviceViewController:(NJDeviceViewController *)dvc didSelectDevice:(NJInputPathElement *)device; -- (void)deviceViewController:(NJDeviceViewController *)devices +- (void)deviceViewController:(NJDeviceViewController *)dvc didSelectBranch:(NJInputPathElement *)handler; -- (void)deviceViewController:(NJDeviceViewController *)devices +- (void)deviceViewController:(NJDeviceViewController *)dvc didSelectHandler:(NJInputPathElement *)handler; -- (void)deviceViewControllerDidSelectNothing:(NJDeviceViewController *)devices; +- (void)deviceViewControllerDidSelectNothing:(NJDeviceViewController *)dvc; @end