CommandClassControlNodeView.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // CommandClassControlNodeView.h
  3. // kneet2
  4. //
  5. // Created by Jason Lee on 11/5/15.
  6. // Copyright © 2015 ntels. All rights reserved.
  7. //
  8. #import "JDObject.h"
  9. @class ItemSubModel;
  10. @class CustomButton;
  11. @class CustomLabel;
  12. @interface CommandClassControlNodeView : UIView {
  13. @protected
  14. __weak ItemSubModel *_subItem;
  15. __weak CmdClsValueModel *_selectedCmdClsValue;
  16. NSString *_cmdClsValue;
  17. }
  18. @property (weak, nonatomic) ItemSubModel *subItem;
  19. @property (weak, nonatomic) CmdClsValueModel *selectedCmdClsValue;
  20. + (CommandClassControlNodeView *)viewForCommandClass:(CmdClsType)cmdClsType;
  21. @end
  22. @interface CommandClassControlNodeSensorBinaryView : CommandClassControlNodeView
  23. @end
  24. @interface CommandClassControlNodeSensorMultiLevelView : CommandClassControlNodeView
  25. @end
  26. @interface CommandClassControlNodeValveView : CommandClassControlNodeView
  27. @property (weak, nonatomic) IBOutlet CustomButton *btnOpen;
  28. @property (weak, nonatomic) IBOutlet CustomButton *btnClose;
  29. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnOpenWidth;
  30. - (IBAction)btnOpenTouched:(id)sender;
  31. - (IBAction)btnCloseTouched:(id)sender;
  32. @end
  33. @interface CommandClassControlNodeSwitchBinaryView : CommandClassControlNodeView
  34. @property (weak, nonatomic) IBOutlet CustomButton *btnOn;
  35. @property (weak, nonatomic) IBOutlet CustomButton *btnOff;
  36. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnOnWidth;
  37. - (IBAction)btnOnTouched:(id)sender;
  38. - (IBAction)btnOffTouched:(id)sender;
  39. @end
  40. @interface CommandClassControlNodeSwitchMultiLevelView : CommandClassControlNodeView
  41. @end