ThingsViewController.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 NSLayoutConstraint *constraintEditModeRight;
  31. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewHeight;
  32. //add hub
  33. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  34. @property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
  35. @property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
  36. @property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
  37. @property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;
  38. #pragma mark - Instance Methods
  39. - (void)prepareViewDidLoad;
  40. - (void)updateHomeHubStatusToDevices;
  41. - (IBAction)btnOptionTouched:(id)sender;
  42. - (void)requestPollingCommandStatusOfDeviceInBackground:(DeviceModel *)device;
  43. -(void)requestDeviceControl;
  44. - (void)releaseDevicesTimer;
  45. -(void)finishDeviveDelete;
  46. @end
  47. @class CustomButton;
  48. @class CustomLabel;
  49. @class CustomImageView;
  50. @class CustomCheckBox;
  51. @interface ThingsCollectionViewCell : UICollectionViewCell
  52. @property (weak, nonatomic) IBOutlet CustomButton *btnDevice;
  53. @property (weak, nonatomic) IBOutlet CustomImageView *imgDevice;
  54. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceName;
  55. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus;
  56. @property (weak, nonatomic) IBOutlet CustomButton *btnDeviceControl; // 장치 on, off
  57. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; // 장치 삭제 버튼
  58. @property (weak, nonatomic) IBOutlet CustomButton *btnChangeOrder; // 장치 목록 순서 편집 버튼
  59. @property (weak, nonatomic) IBOutlet UIView *controlContainer;
  60. @property (weak, nonatomic) IBOutlet UIView *pcontainerView;
  61. @property (weak, nonatomic) IBOutlet UIImageView *imgvProgress;
  62. @end
  63. @interface ThingsAddCollectionCell : UICollectionViewCell
  64. @property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
  65. //@property (weak, nonatomic) IBOutlet CustomButton *btnThingsAdd;
  66. @property (weak, nonatomic) IBOutlet CustomLabel *lblThingsAdd;
  67. @end