//
//  NewAccountViewController.h
//  iDing
//
//  Created by MacBook Pro on 28/01/13.
//  Copyright (c) 2013 Abusamy Ltd.. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Reachability.h"

@interface NewAccountViewController : UIViewController<UITextFieldDelegate,NSURLConnectionDelegate,UIScrollViewDelegate,UIPickerViewDelegate,UIPickerViewDataSource,UITextViewDelegate>
{
    NSURLConnection *urlConnection;
    NSMutableData *mutableData;
    IBOutlet UITextField *nameTF;
    IBOutlet UITextField *countryTF;
    CGFloat old_scroll_view_origin;
    int fieldsTag;
    IBOutlet UIPickerView *genderPickerView;
    IBOutlet UIToolbar *donetoolbar;
    IBOutlet UIBarButtonItem *doneBtn;
    IBOutlet UIView *gPickerVw;
    NSArray *pickerData;
    IBOutlet UIButton *genderBtn;
    id currentEditfld;
    
}
@property (nonatomic,retain)NSURLConnection *urlConnection;
@property (nonatomic,retain)NSMutableData *mutableData;

@property (retain, nonatomic) IBOutlet UITextField *nameTF;
@property (retain, nonatomic) IBOutlet UITextField *countryTF;
@property (retain, nonatomic) IBOutlet UITextField *areaTF;
@property (retain, nonatomic) IBOutlet UITextField *addressTF;
@property (retain, nonatomic) IBOutlet UITextField *phoneTF;
@property (retain, nonatomic) IBOutlet UITextField *genderTF;
@property (retain, nonatomic) IBOutlet UITextField *emailTF;
@property (retain, nonatomic) IBOutlet UITextField *passwordTF;
@property (retain, nonatomic) IBOutlet UITextField *newsLetterTF;
@property (retain, nonatomic) IBOutlet UIButton *createAccountBtn;
- (IBAction)createAccountClicked:(UIButton *)sender;
@property (retain, nonatomic) IBOutlet UIScrollView *newAccountScrollView;
@property(nonatomic,retain) IBOutlet UIPickerView *genderPickerView;
@property(nonatomic,retain)IBOutlet UIToolbar *donetoolbar;
@property(nonatomic,retain)IBOutlet UIBarButtonItem *doneBtn;
@property(nonatomic,retain)    IBOutlet UIButton *genderBtn;

- (IBAction)doneBtnClicked:(UIBarButtonItem *)sender;
@property(nonatomic,retain) IBOutlet UIView *gPickerVw;
@property(nonatomic,retain)    NSArray *pickerData;
- (IBAction)genderBtnClicked:(UIButton *)sender;
@property(nonatomic,readwrite)    id currentEditfld;

@property (retain, nonatomic) IBOutlet UITextView *addressTxtVw;
-(void)parseRegisterResponse:(NSString *)response;

@end
