//
//  AppDelegate.h
//  Allzic
//
//  Created by Alia Bourouis on 03/02/14.
//  Copyright (c) 2014 Alia Bourouis. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <FacebookSDK/FacebookSDK.h>
#import <Social/Social.h>
#import <Accounts/Accounts.h>
#import <AppsPanelSDK/AppsPanelSDK.h>
#import "GAI.h"
#import "GAIDictionaryBuilder.h"
#import "DataController.h"
#import "IntroViewController.h"
#import "UniversalViewController.h"
#import "AllzicViewController.h"
#import "PlayerViewController.h"
#import "CategoriesViewController.h"
#import "CategoriesRadiosViewController.h"
#import "CountryListViewController.h"
#import "DepartmentListViewController.h"
#import "CityRadiosViewController.h"
#import "ExploreViewController.h"
#import "LastRadiosViewController.h"
#import "AroundMeRadioViewController.h"
#import "RandomRadioViewController.h"
#import "TopRadioViewController.h"
#import "FavoriteViewController.h"
#import "PlusViewController.h"
#import "SearchViewController.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, UIWebViewDelegate, UIAlertViewDelegate> {
    
    CGRect screenBounds;
    int systemVersion;
    DataController *dataController;
    IntroViewController *introVC;
    AllzicViewController *allzicVC;
    PlayerViewController *playerVC;
    CategoriesViewController *categoriesVC;
    CategoriesRadiosViewController *categoriesRadiosVC;
    CountryListViewController *countryListVC;
    DepartmentListViewController *departmentListVC;
    CityRadiosViewController *cityRadiosVC;
    ExploreViewController *exploreVC;
    LastRadiosViewController *lastRadiosVC;
    AroundMeRadioViewController *aroundMeRadioVC;
    RandomRadioViewController *randomRadioVC;
    TopRadioViewController *topRadioVC;
    FavoriteViewController *favoriteVC;
    PlusViewController *plusVC;
    SearchViewController *searchVC;
    UniversalViewController *currentVC;
    UniversalViewController *oldVC;
    BOOL isSearching;
    UIWebView *adWebview;
}

@property (strong, nonatomic) UIWindow *window;
@property (nonatomic) CGRect screenBounds;
@property (nonatomic) int systemVersion;
@property(nonatomic, strong) id<GAITracker> tracker;
@property (strong, nonatomic) DataController *dataController;
@property (strong, nonatomic) IntroViewController *introVC;
@property (strong, nonatomic) AllzicViewController *allzicVC;
@property (strong, nonatomic) PlayerViewController *playerVC;
@property (strong, nonatomic) CategoriesViewController *categoriesVC;
@property (strong, nonatomic) CategoriesRadiosViewController *categoriesRadiosVC;
@property (strong, nonatomic) CountryListViewController *countryListVC;
@property (strong, nonatomic) DepartmentListViewController *departmentListVC;
@property (strong, nonatomic) CityRadiosViewController *cityRadiosVC;
@property (strong, nonatomic) ExploreViewController *exploreVC;
@property (strong, nonatomic) LastRadiosViewController *lastRadiosVC;
@property (strong, nonatomic) AroundMeRadioViewController *aroundMeRadioVC;
@property (strong, nonatomic) RandomRadioViewController *randomRadioVC;
@property (strong, nonatomic) TopRadioViewController *topRadioVC;
@property (strong, nonatomic) FavoriteViewController *favoriteVC;
@property (strong, nonatomic) PlusViewController *plusVC;
@property (strong, nonatomic) SearchViewController *searchVC;
@property (strong, nonatomic) UniversalViewController *oldVC;
@property (nonatomic) BOOL isSearching;

- (void)selectTab:(UIButton *)sender;
- (void)likeRadio;
- (void)unlikeRadio;
- (void)likeCategory:(NSDictionary *)category;
- (void)unlikeCategory:(NSDictionary *)category;
- (void)refreshAllzicVC;
- (void)refreshCategoriesVC;
- (void)refreshCategoriesRadiosVC;
- (void)refreshCountryListVC;
- (void)refreshDepartmentListVC;
- (void)refreshCityListVC;
- (void)refreshCityRadiosVC;
- (void)refreshPlayerVC;
- (void)refreshAroudMeVC;
- (void)refreshRandomRadioVC;
- (void)refreshTopRadioVC;
- (void)refreshSearchVC;
- (void)refreshPlayerAd;
- (void)refreshUpdateAndRating;
- (void)selectRadioWithData:(NSArray *)radios atIndex:(int)index;
- (void)selectCategoryWithData:(NSDictionary *)category;
- (void)selectCountryWithData:(NSDictionary *)country;
- (void)selectDepartmentWithData:(NSDictionary *)department;
- (void)selectCityWithData:(NSString *)city;
- (void)shareOnFacebookWithData:(NSMutableDictionary *)sharingData;
- (void)shareOnTwitterWithData:(NSDictionary *)sharingData;

@end
