// // BTInquiryViewController.h // // Created by Matthias Ringwald on 10/8/09. // #import #include // for HCI_STATE @class BTDevice; @protocol BTInquiryDelegate; typedef enum { kInquiryInactive, kInquiryActive, kInquiryRemoteName } InquiryState; @interface BTInquiryViewController : UITableViewController { NSMutableArray *devices; HCI_STATE bluetoothState; InquiryState inquiryState; UIActivityIndicatorView *deviceActivity; UIActivityIndicatorView *bluetoothActivity; UIFont * deviceNameFont; UIFont * macAddressFont; id delegate; } - (void) setBluetoothState:(HCI_STATE)state; - (void) setInquiryState:(InquiryState)state; - (InquiryState) inquiryState; - (HCI_STATE) bluetoothState; @property (nonatomic, retain) NSMutableArray *devices; @property (nonatomic, retain) id delegate; @end @protocol BTInquiryDelegate -(void) deviceChoosen:(BTInquiryViewController *) inqView device:(BTDevice*) device; @end