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

#import <UIKit/UIKit.h>
#import "DevicesListViewController.h"
#import "AlertsViewController.h"
#import "SettingsViewController.h"
//#import "StatisticsViewController.h"
#import "VideosListViewController.h"
#import "VideosMuxListViewController.h"
#import "FourStreamsViewController.h"
#import "MBProgressHUD.h"
#import "DevicesPickerViewController.h"


@interface MainMenuViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,NSURLConnectionDelegate,NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate, MBProgressHUDDelegate, UIPickerViewDataSource, UIPickerViewDelegate>
{
    IBOutlet UITableView *mainMenuTBVw;
    NSArray *menuTableData, *menuTableIcons;
    NSMutableData *mutableData;
    NSURLConnection *urlConnection,*urlConnectionBufferVideos;
    NSMutableArray *devicesArr;
  //  UIPopoverController *pickerPopOver;
   // UIPopoverController *pOC;
    
    IBOutlet UIPickerView *devices_picker;
    DevicesPickerViewController *devicesPicker;
    CGRect popRect;
    MBProgressHUD *HUD;
}

@property (retain, nonatomic) IBOutlet UITableView *mainMenuTBVw;
@property(nonatomic,retain)NSURLConnection *urlConnection, *urlConnectionBufferVideos;
@property(nonatomic,retain)NSMutableData *mutableData,*mutableDataVideos;
-(BOOL)isInternetAvailable;
-(void)requst_manual_video;
@property (nonatomic,retain) NSMutableArray *devicesArr;
@property (nonatomic,retain) NSURLSession *session;
@property (nonatomic,retain) NSString *buffer_file_path;
@property(nonatomic,retain) NSMutableArray *files_todownload;
@property (nonatomic,retain) NSURLSessionDownloadTask *downloadTask1;
@end
