//
//  KSTKSmartListDatasource.h
//  GumiToolKit
//
//  Created by Pierre Oleo on 22/04/05.
//  Copyright 2005 GumiTech. All rights reserved.
//
//  $Id: KSTKSmartListDatasource.h,v 1.6 2006/01/26 18:38:32 aure Exp $

//#import <Cocoa/Cocoa.h>
#import "KSTKSmartListGlobals.h"
#import "KSTKSmartDelegateProtocol.h"

@class KSTKSmartListMaker;

@interface KSTKSmartListDatasource : NSObject {
		NSArray * dataArray;
		NSDictionary * rules;
		KSTKSmartListMaker * smartListMaker;
		id <KSTKSmartDelegateProtocol> delegate;
}
- (id)initWithArray:(NSArray *)anArray;

@property (retain,nonatomic) NSArray * dataArray;
@property (retain,nonatomic) NSDictionary * rules;
@property (retain,nonatomic) KSTKSmartListMaker * smartListMaker;
@property (assign) id delegate;

-(void)rulesSet;
-(void)setSearchTitle:(NSString *)aString;

-(void)setSmartTitle:(NSString *)aString;

-(NSString *)smartTitle;
-(NSArray *) interpretSmartDataForEditing:(NSArray *)someData;
-(void )setSmartListRowWithData:(NSArray *)adataArray anyOrAll:(unsigned int)anyOrAllIndex;
-(void)saveGroup;
-(NSTextField *) smartListNameTF;
@end
