ThingsViewController.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 UICollectionView *collectionView;
  15. @property (weak, nonatomic) IBOutlet UIImageView *imgvHubAlert;
  16. @property (weak, nonatomic) IBOutlet CustomButton *btnOption;
  17. @property (weak, nonatomic) IBOutlet CustomButton *btnClose;
  18. @property (weak, nonatomic) IBOutlet UIView *editModeView;
  19. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  20. //add hub
  21. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  22. @property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
  23. @property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
  24. @property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
  25. @property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;
  26. #pragma mark - Instance Methods
  27. - (void)prepareViewDidLoad;
  28. - (void)updateHomeHubStatusToDevices;
  29. - (IBAction)btnOptionTouched:(id)sender;
  30. - (void)requestPollingCommandStatusOfDeviceInBackground:(DeviceModel *)device;
  31. - (void)releaseDevicesTimer;
  32. @end
  33. @class CustomButton;
  34. @class CustomLabel;
  35. @class CustomImageView;
  36. @class CustomCheckBox;
  37. @interface ThingsCollectionViewCell : UICollectionViewCell
  38. @property (weak, nonatomic) IBOutlet CustomButton *btnDevice;
  39. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceName;
  40. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus;
  41. @property (weak, nonatomic) IBOutlet CustomButton *btnDeviceControl; // 장치 on, off
  42. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; // 장치 삭제 버튼
  43. @property (weak, nonatomic) IBOutlet CustomButton *btnChangeOrder; // 장치 목록 순서 편집 버튼
  44. @property (weak, nonatomic) IBOutlet UIView *controlContainer;
  45. @property (weak, nonatomic) IBOutlet UIView *pcontainerView;
  46. @property (weak, nonatomic) IBOutlet UIImageView *imgvProgress;
  47. @end
  48. @interface ThingsAddCollectionCell : UICollectionViewCell
  49. @property (weak, nonatomic) IBOutlet CustomButton *btnThingsAdd;
  50. @property (weak, nonatomic) IBOutlet CustomLabel *lblThingsAdd;
  51. @end