4#ifndef BTL2CAPCHANNEL_P_H
5#define BTL2CAPCHANNEL_P_H
18#include <QtCore/private/qcore_mac_p.h>
19#include <QtCore/private/qglobal_p.h>
21#include <Foundation/Foundation.h>
23#include <IOBluetooth/IOBluetooth.h>
29class QBluetoothAddress;
39@interface QT_MANGLE_NAMESPACE(DarwinBTL2CAPChannel) : NSObject<IOBluetoothL2CAPChannelDelegate>
41- (id)initWithDelegate:(QT_PREPEND_NAMESPACE(DarwinBluetooth)::ChannelDelegate *)aDelegate;
42- (
id)initWithDelegate:(QT_PREPEND_NAMESPACE(DarwinBluetooth)::ChannelDelegate *)aDelegate
43 channel:(IOBluetoothL2CAPChannel *)aChannel;
48- (IOReturn)connectAsyncToDevice:(
const QT_PREPEND_NAMESPACE(QBluetoothAddress) &)address
49 withPSM:(BluetoothL2CAPChannelID)psm;
52- (
void)l2capChannelData:(IOBluetoothL2CAPChannel*)l2capChannel
53 data:(
void *)dataPointer length:(size_t)dataLength;
54- (
void)l2capChannelOpenComplete:(IOBluetoothL2CAPChannel*)
55 l2capChannel status:(IOReturn)error;
56- (
void)l2capChannelClosed:(IOBluetoothL2CAPChannel*)l2capChannel;
57- (
void)l2capChannelReconfigured:(IOBluetoothL2CAPChannel*)l2capChannel;
58- (
void)l2capChannelWriteComplete:(IOBluetoothL2CAPChannel*)l2capChannel
59 refcon:(
void*)refcon status:(IOReturn)error;
60- (
void)l2capChannelQueueSpaceAvailable:(IOBluetoothL2CAPChannel*)l2capChannel;
63- (BluetoothL2CAPPSM)getPSM;
64- (BluetoothDeviceAddress)peerAddress;
73- (IOReturn) writeSync:(
void*)data length:(UInt16)length;
79- (IOReturn) writeAsync:(
void*)data length:(UInt16)length;
83QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTL2CAPChannel);
#define QT_BT_MAC_AUTORELEASEPOOL
Q_FORWARD_DECLARE_OBJC_CLASS(NSString)