ThingsViewController.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // ThingsViewController.h
  3. // kneet
  4. //
  5. // Created by Jason Lee on 3/10/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class DeviceModel;
  10. @class CustomLabel;
  11. @interface ThingsViewController : JDViewController
  12. #pragma mark - Properties
  13. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  14. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  15. @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
  16. @property (weak, nonatomic) IBOutlet CustomButton *btnAddHub;
  17. @property (weak, nonatomic) IBOutlet UIView *editModeView;
  18. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  19. #pragma mark - Instance Methods
  20. - (void)prepareViewDidLoad;
  21. - (void)updateHomeHubStatusToDevices;
  22. - (void)updateDevice:(DeviceModel *)device;
  23. - (IBAction)btnAddHubTouched:(id)sender;
  24. - (IBAction)btnOptionTouched:(id)sender;
  25. - (IBAction)btnCloseOnEditModeTouched:(id)sender;
  26. - (void)requestPollingCommandStatusOfDeviceInBackground:(DeviceModel *)device;
  27. @end
  28. @class CustomButton;
  29. @class CustomLabel;
  30. @class CustomImageView;
  31. @class CustomCheckBox;
  32. @interface ThingsCollectionViewCell : UICollectionViewCell
  33. @property (weak, nonatomic) IBOutlet CustomButton *btnDevice;
  34. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceName;
  35. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus;
  36. @property (weak, nonatomic) IBOutlet UIView *controlContainer;
  37. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  38. @property (weak, nonatomic) IBOutlet UIActivityIndicatorView *aiv;
  39. @end
  40. @interface ThingsAddCollectionViewCell : UICollectionViewCell
  41. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  42. @end
  43. @interface ThingsCollectionFooterView : UICollectionReusableView
  44. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  45. @end