RulesViewController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // RulesViewController.h
  3. // kneet
  4. //
  5. // Created by Jason Lee on 3/18/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class RuleModel;
  10. @interface RulesViewController : JDViewController
  11. #pragma mark - Properties
  12. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  13. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  14. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  15. @property (weak, nonatomic) IBOutlet CustomButton *btnAddHub;
  16. @property (weak, nonatomic) IBOutlet UIView *editModeView;
  17. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  18. #pragma mark - Instance Methods
  19. - (void)prepareViewDidLoad;
  20. - (void)requestRuleListRecently;
  21. - (void)updateHomeHubStatusToRules;
  22. - (void)updateRule:(RuleModel *)scene;
  23. - (IBAction)btnAddHubTouched:(id)sender;
  24. - (IBAction)btnOptionTouched:(id)sender;
  25. - (IBAction)btnCloseOnEditModeTouched:(id)sender;
  26. @end
  27. @class CustomImageView;
  28. @class CustomLabel;
  29. @class CustomButton;
  30. @interface RulesTableViewCell : KNTableViewCell
  31. @property (weak, nonatomic) IBOutlet CustomImageView *imgvTrigger;
  32. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleName;
  33. @property (weak, nonatomic) IBOutlet CustomButton *btnRulePlay;
  34. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  35. @end