//
//  DocumentsSync.h
//  EAMNext
//
//  Created by Ramakrishna Pasupuleti on 11/3/16.
//
//

#import <Foundation/Foundation.h>
#import "DocumentsDataController.h"
#import "FileHandler.h"

@protocol DocumnetSyncDelegate

- (void)documentSyncCompleted;
- (void)documentSyncStarts;
- (void)documentSyncProgress:(float)progress;

@end

@interface DocumentsSync : NSObject

@property (nonatomic, weak) id delegate;
@property (nonatomic, weak) DocumentsDataController *documentsDataController;
@property (nonatomic, strong) FileHandler   *fileHandler;
@property (nonatomic,strong)NSArray *documentsArray;
@property (nonatomic) NSInteger totalDocCount;
@property (nonatomic) NSInteger currentDocIndex;

-(void)downloadDocuments;
-(void)clearExpireDocuments;

@end
