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

#import <Foundation/Foundation.h>
#import "GridData.h"
#import "WebQuery.h"

@protocol LocalServiceDelegate

- (void)localServiceReceivedResponse:(id)data fileBytes:(NSData *)fileBytes request:(NSString *)request requestType:(WebQueryRequestType)requestType withSender:(id)sender;
- (void)localServiceFailedWithError:(NSError *) error request:(NSString *)request requestType:(WebQueryRequestType)requestType withSender:(id)sender;

@end

@interface LocalService : NSObject

@property (nonatomic, strong) id                delegate;

- (void)sendRequest:(WebQueryRequestType)requestType 
        withRequest:(NSString *)request 
   withNumberofRows:(long)rows
withCurrentPosition:(long)currentPosition
      withFileBytes:(NSData *)fileBytes
             object:(id)object
     withParameters:(WebQueryParameters *)parameters;

@end
