//
//  HomeHubViewController.h
//  kneet2
//
//  Created by Jason Lee on 10/28/15.
//  Copyright © 2015 ntels. All rights reserved.
//

#import "JDViewController.h"

@class CustomLabel;
@class CustomImageView;
@class CustomButton;

@interface HomeHubViewController : JDViewController <BLEServiceHandlerDelegate>

@property (weak, nonatomic) DeviceModel *selectHub;
#pragma mark - Properties
@property (weak, nonatomic) IBOutlet CustomTableView *tableView;
@property (weak, nonatomic) IBOutlet CustomButton *btnEditTitle; // Head Title 명 수정 버튼
@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle; // Head Title 명
@property (weak, nonatomic) IBOutlet CustomButton *btnClose;


#pragma mark - Instance Methods
- (void)updateHomeHubStatus;


- (IBAction)btnCloseTouched:(id)sender;

@end


@interface HomeHubTableViewCell : KNTableViewCell

@property (weak, nonatomic) IBOutlet CustomLabel *lblNetworkStatus;  // 네트워크 상태
@property (weak, nonatomic) IBOutlet CustomLabel *lblBrokenTime; // 네트워크 끊긴 시간
@property (weak, nonatomic) IBOutlet UIImageView *imgvStatus; // 네트워크 단절 이미지
@property (weak, nonatomic) IBOutlet CustomButton *btnSet; // 설정 버튼
@property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus; // 장치 연결 상태

@end

@interface HomeHubRegistTableViewCell : KNTableViewCell

@property (weak, nonatomic) IBOutlet CustomLabel *lblUpdate;
@property (weak, nonatomic) IBOutlet CustomLabel *lblFirmCurrentVer;  // 펌웨어 현재 버전
@property (weak, nonatomic) IBOutlet CustomLabel *lblFirmNewestVer;  // 펌웨어 최신 버전
@property (weak, nonatomic) IBOutlet CustomLabel *lblSoftCurrentVer; // 소프트웨어 현재 버전
@property (weak, nonatomic) IBOutlet CustomLabel *lblSoftNewestVer; // 소프트웨어 최신 버전
@property (weak, nonatomic) IBOutlet CustomButton *btnSoftUpdate;
@property (weak, nonatomic) IBOutlet UIView *viewUpdate;

@end

@interface HomeHubInfoTableViewCell : KNTableViewCell
@property (weak, nonatomic) IBOutlet CustomLabel *lblModelName; // 모델명
@property (weak, nonatomic) IBOutlet CustomLabel *lblSerialNum; // 시리얼 번호


@end
