ThingsViewController.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 CustomImageView *imgvArrow; // 화살표 아이콘
  16. @property (weak, nonatomic) IBOutlet CustomLabel *lblCount; // 홈허브 개수
  17. @property (weak, nonatomic) IBOutlet UIView *viewTitle; // Head Title View
  18. @property (weak, nonatomic) IBOutlet CustomLabel *lblEditMode; // 순서 편집모드 텍스트
  19. @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
  20. @property (weak, nonatomic) IBOutlet UIImageView *imgvHubAlert;
  21. @property (weak, nonatomic) IBOutlet CustomButton *btnOption;
  22. @property (weak, nonatomic) IBOutlet CustomButton *btnClose;
  23. @property (weak, nonatomic) IBOutlet CustomImageView *imgvLogo; // 로고
  24. @property (weak, nonatomic) IBOutlet UIView *viewEditMode;
  25. @property (weak, nonatomic) IBOutlet CustomButton *btnEditClose;
  26. @property (weak, nonatomic) IBOutlet CustomButton *btnEditSave;
  27. @property (weak, nonatomic) IBOutlet CustomButton *btnEditRefresh;
  28. @property (weak, nonatomic) IBOutlet UIView *viewOffline;
  29. @property (weak, nonatomic) IBOutlet CustomLabel *lblOffline;
  30. @property (weak, nonatomic) IBOutlet UIButton *btnOfflineMulti;
  31. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  32. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewHeight;
  33. //add hub
  34. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  35. @property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
  36. @property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
  37. @property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
  38. @property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;
  39. #pragma mark - Instance Methods
  40. - (void)prepareViewDidLoadRefreshPopup;
  41. - (void)updateHomeHubStatusToDevices;
  42. - (IBAction)btnOptionTouched:(id)sender;
  43. - (void)requestPollingCommandStatusOfDeviceInBackground:(DeviceModel *)device;
  44. -(void)requestDeviceControl;
  45. - (void)releaseDevicesTimer;
  46. -(void)finishDeviveDelete;
  47. @end
  48. @class CustomButton;
  49. @class CustomLabel;
  50. @class CustomImageView;
  51. @class CustomCheckBox;
  52. @interface ThingsCollectionViewCell : UICollectionViewCell
  53. @property (weak, nonatomic) IBOutlet CustomButton *btnDevice;
  54. @property (weak, nonatomic) IBOutlet CustomImageView *imgDevice;
  55. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceName;
  56. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus;
  57. @property (weak, nonatomic) IBOutlet CustomButton *btnDeviceControl; // 장치 on, off
  58. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; // 장치 삭제 버튼
  59. @property (weak, nonatomic) IBOutlet CustomButton *btnChangeOrder; // 장치 목록 순서 편집 버튼
  60. @property (weak, nonatomic) IBOutlet UIView *controlContainer;
  61. @property (weak, nonatomic) IBOutlet UIView *pcontainerView;
  62. @property (weak, nonatomic) IBOutlet UIImageView *imgvProgress;
  63. @end
  64. @interface ThingsAddCollectionCell : UICollectionViewCell
  65. @property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
  66. //@property (weak, nonatomic) IBOutlet CustomButton *btnThingsAdd;
  67. @property (weak, nonatomic) IBOutlet CustomLabel *lblThingsAdd;
  68. @end