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

#import <UIKit/UIKit.h>
#define UIAPPDELEGATE \
 ((AppDelegate*)[UIApplication sharedApplication].delegate)

@class ViewController;

@interface AppDelegate : UIResponder <UIApplicationDelegate,UIAlertViewDelegate,NSURLConnectionDelegate>
{
    UINavigationController *iDNavCntrlr;
    NSString *loggedUserName, *loggedPassword;
    BOOL isAutoUpdate, isAutoLogin, isFourcams;
    BOOL isPushNotif;
    BOOL isAlertsFirstUpdate;
    NSString *dToken;
    int openPage;
 
}

-(BOOL)isInternetAvailable;
-(void)setBBBKID:(NSString*)bbbk;

@property (copy) void (^backgroundSessionCompletionHandler)();
@property (nonatomic,readwrite)BOOL pullforRefresh;
-(NSString*) getDefautDeviceID;
-(void)saveSettings;
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) ViewController *viewController;
@property(nonatomic,retain) NSString *loggedUserName;
@property(nonatomic,retain) NSString *loggedPassword;
@property(nonatomic,readwrite)BOOL isAutoUpdate, isAutoLogin, isFourcams;
@property(nonatomic,readwrite)BOOL isPushNotif,autoLogin;
@property(nonatomic,readwrite)int openPage;
@property(nonatomic,retain)NSString *dToken;
@property(nonatomic,retain)NSString *BBBK;
@property(nonatomic,readwrite)BOOL isAlertsFirstUpdate;


@end

#define BLog(formatString, ...) NSLog((@"%s " formatString), __PRETTY_FUNCTION__, ##__VA_ARGS__);
