#import <Foundation/Foundation.h>
#import <Foundation/NSDictionary.h>

#import <UIKit/UIKit.h>
#import <UIKit/UITextLabel.h>
#import <UIKit/UIKeyboard.h>
#import <UIKit/UIImageAndTextTableCell.h>
#import <UIKit/UISearchField.h>
#import <UIKit/UIApplication.h>

// **** can searchtablecell be done away with?

@interface SearchTableCell : UIImageAndTextTableCell
{
        UITextLabel* song_name;
        UITextLabel* artist_name;
        
@public
        char m_Path[256];
}
@end


@interface QueryView : UIView
{
  UIView* _parent;
  NSString* _collection;

  UIKeyboard* _keyboard;
  BOOL _keyboardVisible;
 
  UINavigationBar* _navbar;
  //UISearchField* _searchBox;
  UISearchBar* _searchBar;
       
  NSMutableArray* _cellResultList;
  NSMutableArray* _oidItem;
  
  UITable* _table;

}

-(id) initWithFrame:(struct CGRect)frame withParent:(UIView*)parent 
         withCollection:(NSString*)collection withTitle:(NSString*)title;

-(void) setTitle:(NSString*)title;


-(void) navigationBar:(UINavigationBar*)navbar buttonClicked:(int)button;

-(void) tableRowSelected:(NSNotification*)notification;
-(void) asynchronousLoad:(NSTimer*)timer;

-(void)keyboardInput:(id)k shouldInsertText:(id)i isMarkedText:(int)b;

- (void)keyboardReturnPressed;
- (void)ShowKeyboard;
- (void)HideKeyboard;

-(void) dealloc;

@end
