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

#import "JDViewController.h"

@class ThingsViewController;
@class CustomLabelButton;
@class CustomImageView;

@interface MainViewController : JDViewController


#pragma mark - Properties
@property (weak, nonatomic) IBOutlet UIView *tabBar;
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;

@property (weak, nonatomic) IBOutlet CustomButton *btnThings;
@property (weak, nonatomic) IBOutlet CustomButton *btnRules;
@property (weak, nonatomic) IBOutlet CustomButton *btnMembers;
@property (weak, nonatomic) IBOutlet CustomButton *btnExtend;


#pragma mark - Extend view
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintExpandViewTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintExpandViewHeight;
@property (weak, nonatomic) IBOutlet CustomButton *btnHomegrpImage;

////left Box
//@property (weak, nonatomic) IBOutlet CustomLabel *lblNoticeCount;
//@property (weak, nonatomic) IBOutlet CustomLabel *lblPushCount;
//@property (weak, nonatomic) IBOutlet CustomImageView *imgvHomehubOff;


////extend view
//@property (weak, nonatomic) IBOutlet CustomButton *btnHomeHub;
//
//@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeHome;
//@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeAway;
//@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeMorning;
//@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeNight;
//
//@property (strong, nonatomic) IBOutletCollection(CustomLabelButton) NSArray *btnModes;

@property (strong, nonatomic) ThingsViewController *tvc;

#pragma mark - Instance Methods

- (void)updateHomeHubStatusToChildViewController;
- (void)updateCurrentViewController;
- (void)checkTempPassword;

- (void)loadThingsViewController;
- (void)loadRulesViewController;
- (void)loadMembersViewController;
- (void)loadManagementViewController;

- (void)updateRulesListRecently;

- (IBAction)btnThingsTouched:(id)sender;
- (IBAction)btnRuleTouched:(id)sender;
- (IBAction)btnMemberTouched:(id)sender;
- (IBAction)btnExtendTouched:(id)sender;
//- (IBAction)btnCollapseTouched:(id)sender;

////Extend view
//- (IBAction)btnProfileTouched:(id)sender;
//- (IBAction)btnNoticeTouched:(id)sender;
//- (IBAction)btnMessageBoxTouched:(id)sender;
//- (IBAction)btnHomeHubTouched:(id)sender;
//- (IBAction)btnSettingsTouched:(id)sender;

////mode
//- (IBAction)btnModeHomeTouched:(id)sender;
//- (IBAction)btnModeAwayTouched:(id)sender;
//- (IBAction)btnModeMorningTouched:(id)sender;
//- (IBAction)btnModeNightTouched:(id)sender;
//
//- (IBAction)btnDashboardRefresh:(id)sender;


@end
