Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
btdevicepair_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef BTDEVICEPAIR_P_H
5#define BTDEVICEPAIR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19#include "btdelegates_p.h"
20#include "btutility_p.h"
21
22#include <QtCore/private/qcore_mac_p.h>
23
24#include <QtCore/qglobal.h>
25
26#include <Foundation/Foundation.h>
27
28#include <IOBluetooth/IOBluetooth.h>
29
30QT_BEGIN_NAMESPACE
31
32namespace DarwinBluetooth {
33
35
36} // Namespace DarwinBluetooth.
37
38QT_END_NAMESPACE
39
40@interface QT_MANGLE_NAMESPACE(DarwinBTClassicPairing) : NSObject<IOBluetoothDevicePairDelegate>
41
42- (id)initWithTarget:(const QBluetoothAddress &)address
43 delegate:(QT_PREPEND_NAMESPACE(DarwinBluetooth::PairingDelegate) *)object;
44
45- (void)dealloc;
46
47- (IOReturn)start;
48- (bool)isActive;
49- (void)stop;
50
51- (const QBluetoothAddress &)targetAddress;
52- (IOBluetoothDevicePair *)pairingRequest;
53- (IOBluetoothDevice *)targetDevice;
54
55// IOBluetoothDevicePairDelegate:
56
57- (void)devicePairingStarted:(id)sender;
58- (void)devicePairingConnecting:(id)sender;
59- (void)deviceParingPINCodeRequest:(id)sender;
60
61- (void)devicePairingUserConfirmationRequest:(id)sender
62 numericValue:(BluetoothNumericValue)numericValue;
63
64- (void)devicePairingUserPasskeyNotification:(id)sender
65 passkey:(BluetoothPasskey)passkey;
66
67- (void)devicePairingFinished:(id)sender
68 error:(IOReturn)error;
69
70- (void)deviceSimplePairingComplete:(id)sender
71 status:(BluetoothHCIEventStatus)status;
72
73@end
74
75QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTClassicPairing);
76
77#endif
#define QT_BT_MAC_AUTORELEASEPOOL
Definition btutility_p.h:78
ObjCStrongReference< IOBluetoothDevice > device_with_address(const QBluetoothAddress &address)