//
//  DataSyncNew.h
//  EAMiPad
//
//  Created by Ram Madichetty on 8/16/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol DataSyncDelegate2
- (void)dataSyncSuccess;
- (void)dataSyncFailed;
- (void)dataSyncWarning;
- (void)dataSyncProgress:(float)progress;
- (void)dataSyncFailedWithErrorMessage:(NSString *)errorMessage;

@end

@interface DataSyncNew : NSObject<DataSyncDelegate2>

@property (nonatomic, weak) id delegate;
@property (nonatomic) BOOL isAutoSync ;
@property (nonatomic) BOOL isOnDemandSync;
@property (nonatomic, strong)   NSMutableArray *downloadCategories;

- (void)downloadData;
- (void)downloadSyncConfig;
- (void)stopSync;

- (void)prepareMobileDownloading;
- (void)afterDownloadCompleted;
- (void)prepareWorkOrders_assetID:(NSString *)assetID assetOrg:(NSString *)assetORG;

@end
