//
//  NameChangerViewController.h
//  DUREX Vendor Control
//
//  Created by Imanol Barba on 9/3/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.
//

@class NameChangerViewController;

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "BTAppDelegate.h"
#import "ChildViewController.h"

@protocol NameChangerViewControllerDelegate <NSObject>
- (void)passNameViewController:(NameChangerViewController*)controller didFinishEnteringItem:(NSArray *)data;

@end


@interface NameChangerViewController : ChildViewController <UITextFieldDelegate>

@property (strong, nonatomic) IBOutlet UIView *nameChangerView;
@property (strong, nonatomic) IBOutlet UITextField *name;
@property (strong, nonatomic) IBOutlet UITextField *channel;
@property (strong, nonatomic) IBOutlet UITextField *code;
@property (nonatomic, strong) id <NameChangerViewControllerDelegate> delegate;

- (void) showInView:(UIView *)aView animated:(BOOL)animated;
- (IBAction) closePopup:(id)sender;


@end