//
//  ftpPage.h
//  AS350B3e
//
//  Created by KulanaMac on 2/17/15.
//
//





#import <UIKit/UIKit.h>

@interface DocumentViewer : UIViewController {
    
    NSURL *targetURLTransfer;
    
    
    
    NSURLRequest *downloadRequest;
    NSURLConnection *downloadConnection;
    NSMutableData *downloadData;
    float downloadSize;
    
    NSString *downloadFilename;
    int downloadFileTimestamp;
    int downloadFileFoldertag;
    
    float connectedToFleetControl;
    NSString *customer;
    
    NSString *serverpath;
    NSString *serverhost;
    NSString *ACtype;
    NSString *serverDocumentPath;
    
    NSMutableArray *folder;
    NSMutableArray *downloadedFiles;
    NSMutableArray *downloadedFilesTimestamp;
    
    NSMutableArray *filesToDownload;
    NSMutableArray *filesToDownloadFoldertag;
    NSMutableArray *filesToDownloadTimestamp;
    int filesToDownloadMax;
    int filesToDownloadCurrent;
    
    int currentFolderTag;
    bool allowed;
    
    int allDocuments;
    
    NSMutableArray *openedProtectedFolders;
    
    int alertFlag;
    
    int tagForwarded;
    
    int  allFilesCount;
    
    int openFolder;
   
    bool multipleDownload;
    
    float pinchScaleWebView, pinchScaleEndedWebView, moveupDownWebView, moveLeftRightWebView;
    
}


@property (weak, nonatomic) IBOutlet UIView *viewNVGFilter;

@property (weak, nonatomic) IBOutlet UIView *masterWebView;

@property (weak, nonatomic) IBOutlet UIView *view1;



@property (strong, nonatomic) IBOutlet UIView *viewMain;

- (IBAction)switch_viewMode:(id)sender;


@property (weak, nonatomic) IBOutlet UILabel *label_viewmode;

- (IBAction)go_back:(id)sender;

- (IBAction)minimize:(id)sender;

@property (weak, nonatomic) IBOutlet UIView *lineVertical;

@property (weak, nonatomic) IBOutlet UIView *buttonCloseView;

@property (weak, nonatomic) IBOutlet UIImageView *backgroundMain;
@property (weak, nonatomic) IBOutlet UIImageView *backGroundDocViewerMain;
@property (weak, nonatomic) IBOutlet UIView *viewDocInfoBottom;

@property (weak, nonatomic) IBOutlet UIView *view_fullscreen;

@property (weak, nonatomic) IBOutlet UIView *viewButtonsTop;
- (IBAction)cancelDownload:(id)sender;

@property (weak, nonatomic) IBOutlet UIProgressView *downloadProgressBarAll;
@property (weak, nonatomic) IBOutlet UILabel *downloadProgressAll;

@property (weak, nonatomic) IBOutlet UILabel *downloadProgress;
@property (weak, nonatomic) IBOutlet UIProgressView *downloadProgressBar;
@property (weak, nonatomic) IBOutlet UIView *downloadProgressView;
@property (weak, nonatomic) IBOutlet UIScrollView *files_sview;
@property (weak, nonatomic) IBOutlet UIScrollView *folder_sview;
@property (weak, nonatomic) IBOutlet UIWebView *files_webview;
@property (weak, nonatomic) IBOutlet UITextField *downloadUrl;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *downloadProgressSpinner;
@property (weak, nonatomic) IBOutlet UIView *view_documentViewer;
@property (weak, nonatomic) IBOutlet UIView *view_notConnected;


@property (strong, nonatomic) IBOutlet UIImageView *arrowFolders;

@property (strong, nonatomic) IBOutlet UILabel *labelDocumentsAvailable;
@property (strong, nonatomic) IBOutlet UILabel *labelDocumentsDownloaded;

- (IBAction)actionRefreshData:(id)sender;

- (IBAction)actionLoadAll:(id)sender;

- (IBAction)actionCopyToGoodReader:(id)sender;

@end

