//
//  HomeMemberViewController.h
//  kneet
//
//  Created by Jason Lee on 6/15/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

#import "JDViewController.h"
//#import "MoreButtonDelegate.h"
#import "MorePopOverViewController.h"

@class CustomLabelButton;

@interface HomeMemberViewController : JDViewController

#pragma mark - Properties
@property (weak, nonatomic) IBOutlet UIImageView *imgvHubAlert;
@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
@property (weak, nonatomic) IBOutlet CustomButton *btnOption;
@property (weak, nonatomic) IBOutlet CustomButton *btnClose;

@property (weak, nonatomic) IBOutlet UIView *editModeView;


@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;


//add hub
@property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
@property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
@property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
@property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
@property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;


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

- (IBAction)btnDeleteOnEditModeTouched:(id)sender;
- (IBAction)btnCloseOnEditModeTouched:(id)sender;
- (void)leaveHomegroup;

@end

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

@interface HomeMemberCollectionCell : UICollectionViewCell

@property (weak, nonatomic) IBOutlet CustomButton *btnProfile;

@property (weak, nonatomic) IBOutlet CustomLabel *lblNickname;
@property (weak, nonatomic) IBOutlet CustomLabel *lblMemID;
@property (weak, nonatomic) IBOutlet CustomLabel *lblStatus;
@property (weak, nonatomic) IBOutlet CustomButton *btnCheck;
@property (weak, nonatomic) IBOutlet CustomButton *btnDelete;

@end


@interface HomeMemberAddCollectionCell : UICollectionViewCell

@property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
@property (weak, nonatomic) IBOutlet CustomButton *btnAddCenter;
@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
@property (weak, nonatomic) IBOutlet CustomLabel *lblMemInvite;

@end

@interface HomeMemberCollectionFooterView : UICollectionReusableView

@property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
@property (weak, nonatomic) IBOutlet CustomLabel *lblSingleMemInvite;

@end
