//
//  LOVGridWebService.h
//  EAMMobile
//
//  Created by Weikang Ding on 2/17/11.
//  Copyright 2011 Infor. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LOVData.h"

@protocol LOVGridWebServiceDelegate <NSObject>
    -(void)lOVGridWebServiceDone:(BOOL)success head:(NSArray *)head data:(NSArray *)data moreRecord:(BOOL)moreRecord error:(NSString *)error;
@end


@class WebQuery;

@interface LOVGridWebService : NSObject {
	LOVData *lovDefinition;
}

@property (assign) id<LOVGridWebServiceDelegate> delegate;
@property (nonatomic, strong) WebQuery  *queryHandler;

- (void)setConnectionMode:(ConnectionMode )conMode;

-(void)downloadLOVGrid:(LOVData *)lovData startFrom:(NSInteger)position filterBy:(NSString *)filter;
-(void)downloadLOVGridWithFilter:(LOVData *)lovData;

@end
