//
//  RootViewController.h
//  Free Name
//
//  Created by Willem Laurentz Middelkoop on 13-03-11.
//  Copyright 2011 WMIT. All rights reserved.
//

#import <UIKit/UIKit.h>

@class NameCheck;

@interface RootViewController : UITableViewController {
	IBOutlet UISearchBar *searchBar;
	IBOutlet UIBarButtonItem *buttonReset;
	IBOutlet UIView *backgroundView;
	IBOutlet UIView *backgroundResultsView;
	IBOutlet UIView *progressView;
	NSMutableArray *listOfItems;
}


-(void)buttonReset_click:(id)sender;
-(void)searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar;
-(void)searchBarSearchButtonClicked:(UISearchBar *)theSearchBar;
-(void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText;

-(void)check;
-(void)startCheckThread;
-(void)doCheckWork;
-(void)reloadChecks:(NameCheck *)nameCheck;
@end
