btstack/CocoaTouch/include/BTstack/BTInquiryViewController.h

39 lines
878 B
C
Raw Normal View History

//
// BTInquiryViewController.h
//
// Created by Matthias Ringwald on 10/8/09.
//
#import <UIKit/UIKit.h>
#include <btstack/hci_cmds.h> // 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<BTInquiryDelegate> delegate;
}
- (void) startInquiry;
@property (nonatomic, retain) NSMutableArray *devices;
@property (nonatomic, retain) id<BTInquiryDelegate> delegate;
@end
@protocol BTInquiryDelegate
- (void) deviceChoosen:(BTInquiryViewController *) inqView device:(BTDevice*) device;
@end