4#ifndef BTRFCOMMCHANNEL_P_H
5#define BTRFCOMMCHANNEL_P_H
18#include <QtCore/private/qglobal_p.h>
19#include <QtCore/private/qcore_mac_p.h>
21#include <Foundation/Foundation.h>
23#include <IOBluetooth/IOBluetooth.h>
27class QBluetoothAddress;
37@interface QT_MANGLE_NAMESPACE(DarwinBTRFCOMMChannel) : NSObject<IOBluetoothRFCOMMChannelDelegate>
39- (id)initWithDelegate:(QT_PREPEND_NAMESPACE(DarwinBluetooth)::ChannelDelegate *)aDelegate;
40- (
id)initWithDelegate:(QT_PREPEND_NAMESPACE(DarwinBluetooth)::ChannelDelegate *)aDelegate
41 channel:(IOBluetoothRFCOMMChannel *)aChannel;
46- (IOReturn)connectAsyncToDevice:(
const QT_PREPEND_NAMESPACE(QBluetoothAddress) &)address
47 withChannelID:(BluetoothRFCOMMChannelID)channelID;
49- (
void)rfcommChannelData:(IOBluetoothRFCOMMChannel*)rfcommChannel
50 data:(
void *)dataPointer length:(size_t)dataLength;
51- (
void)rfcommChannelOpenComplete:(IOBluetoothRFCOMMChannel*)rfcommChannel
52 status:(IOReturn)error;
53- (
void)rfcommChannelClosed:(IOBluetoothRFCOMMChannel*)rfcommChannel;
54- (
void)rfcommChannelControlSignalsChanged:(IOBluetoothRFCOMMChannel*)rfcommChannel;
55- (
void)rfcommChannelFlowControlChanged:(IOBluetoothRFCOMMChannel*)rfcommChannel;
56- (
void)rfcommChannelWriteComplete:(IOBluetoothRFCOMMChannel*)rfcommChannel
57 refcon:(
void*)refcon status:(IOReturn)error;
58- (
void)rfcommChannelQueueSpaceAvailable:(IOBluetoothRFCOMMChannel*)rfcommChannel;
61- (BluetoothRFCOMMChannelID)getChannelID;
62- (BluetoothDeviceAddress)peerAddress;
65- (BluetoothRFCOMMMTU)getMTU;
67- (IOReturn) writeSync:(
void*)data length:(UInt16)length;
68- (IOReturn) writeAsync:(
void*)data length:(UInt16)length;
70- (
void)handleChannelOpenTimeout;
74QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTRFCOMMChannel);
#define QT_BT_MAC_AUTORELEASEPOOL
static constexpr auto channelOpenTimeoutMs
Q_FORWARD_DECLARE_OBJC_CLASS(NSString)