//
//  CognosReportService.h
//  HMSMobile
//
//  Created by Weikang Ding on 1/12/12.
//  Copyright (c) 2012 Infor Global Solutions. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol PDFReportServiceDelegate <NSObject>
- (void)pdfReportServiceDone:(BOOL)success data:(NSMutableData *)data error:(NSString *)error;
@end

@interface PDFReportService : NSObject{
	
}

@property (nonatomic, weak) id delegate;

@property (nonatomic,retain) NSString *webRequest;
@property (nonatomic,retain) NSMutableData *receivedData;
@property (nonatomic,retain) NSURLConnection *connection;

//Download PDF and store in the cache folder with specific name
-(void)fetchPDFReport:(NSString *)urlString request:(NSString *)requestBody;

@end