//
//  ThingsDetailViewController.h
//  kneet
//
//  Created by Jason Lee on 3/16/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

#import "JDViewController.h"

@class DeviceModel;

@interface ThingsDetailViewController : JDViewController


#pragma mark - Properties
@property (weak, nonatomic) DeviceModel *refDevice;
@property (weak, nonatomic) DeviceModel *selectHub;

@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
@property (weak, nonatomic) IBOutlet CustomTableView *tableView;
@property (weak, nonatomic) IBOutlet CustomButton *btnClose;
@property (weak, nonatomic) IBOutlet CustomButton *btnUpdate;  // 업데이트 버튼
@property (weak, nonatomic) IBOutlet CustomButton *btnOption;  // more 버튼


#pragma mark - Instance Methods
- (void)prepareViewDidLoad;
- (IBAction)btnOptionTouched:(id)sender;
- (IBAction)btnCloseTouched:(id)sender;

-(void)finishDeviveDelete;

@end


@class CustomLabel;
@class CustomImageView;
@class CustomTextField2;

@interface ThingsDetailTitleTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceUpdate; // 장치 업데이트 권고 텍스트
@property (weak, nonatomic) IBOutlet CustomImageView *imgvDevice; // 장치 이미지
@property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus;  // 꺼짐 , 켜짐 , 잠김 , 열림
@property (weak, nonatomic) IBOutlet CustomLabel *lblOffline; // 장치 오프라인 텍스트
@property (weak, nonatomic) IBOutlet CustomButton *btnDeviceControl; // 장치 on, off
@property (weak, nonatomic) IBOutlet UIView *viewStatus; // 장치 상태, 제어버튼 뷰
@property (weak, nonatomic) IBOutlet UIView *viewDoorLastMotion; // 도어센서 상태,동작 표시 뷰
@property (weak, nonatomic) IBOutlet CustomLabel *lblDoorLastMotion; // 도어센서 마지막 동작 표시
@property (weak, nonatomic) IBOutlet CustomLabel *lblDoorStatus; // 도어센서 상태 표시 , 열림 ,닫힘

@end

@interface ThingsDetailControlTableViewCell : KNTableViewCell2
@property (weak, nonatomic) IBOutlet UIScrollView *controlContainer;
@property (weak, nonatomic) IBOutlet UIPageControl *pageControl;

@end

@interface ThingsDetailOptionTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomLabel *lblNodeName;
@property (weak, nonatomic) IBOutlet CustomLabel *lblNodeValue;

@end

@interface ThingsDetailDeviceIdTableViewCell : KNTableViewCell2
@property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceId; // 장치 ID
@property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceName; // 장치 명
@end
