//
//  ViewController.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"
//#import "NoConnectionView.h"
//#import "Toast+UIView.h"
#import "NewAccountViewController.h"
#import "iDingSettings.h"
#import "MainMenuViewController.h"
@interface ViewController : UIViewController<UITextFieldDelegate,NSURLConnectionDelegate>
{
    IBOutlet UITextField *userNameTxtFld;
    IBOutlet UITextField *passwordTxtFld;
    IBOutlet UIButton *loginBtn;
    IBOutlet UIButton *createAccountBtn;
    NSURLConnection *urlConnection;
    NSMutableData *mutableData;
    BOOL isLogin;
    IBOutlet UILabel *lineLbl;
    IBOutlet UIView *loginCustomView;
}
@property(nonatomic,retain)NSURLConnection *urlConnection;
@property(nonatomic,retain)NSMutableData *mutableData;
@property(nonatomic,retain)IBOutlet UITextField *passwordTxtFld;
@property(retain,nonatomic) IBOutlet UITextField *userNameTxtFld;
-(BOOL)isInternetAvailable;
- (IBAction)loginAction:(id)sender;
- (IBAction)createAccountAction:(id)sender;
- (void)login:(NSString *)userName password:(NSString *)password;
- (void)parseLoginResponse:(NSString *)response;

@end
