#ifndef OSX_BLUETOOTH_IMPL_H #define OSX_BLUETOOTH_IMPL_H #import #import #import #import #import namespace trygvis { namespace bluetooth { namespace osx { class InquiryDelegate { public: InquiryDelegate(OsxBluetoothAdapter &adapter, std::function callback) : adapter(adapter), callback(callback) { } void deviceInquiryStarted(); private: OsxBluetoothAdapter &adapter; std::function callback; }; } } } // TODO: can this be in a c++ namespace? @interface InquiryDelegateWrapper : NSObject { // - (void)deviceInquiryStarted:(IOBluetoothDeviceInquiry *)sender //trygvis::bluetooth::osx::OsxBluetoothAdapter *adapter; trygvis::bluetooth::osx::InquiryDelegate* adapter; } - (id) initWithCPPInstance:(trygvis::bluetooth::osx::InquiryDelegate*)adapter; - (void)deviceInquiryStarted:(IOBluetoothDeviceInquiry *)sender; @end #endif