ThingsViewController.h 2.6 KB

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