Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
18
#
include
"qbluetoothaddress.h"
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
30
QT_BEGIN_NAMESPACE
31
32
namespace
DarwinBluetooth
{
33
34
ObjCStrongReference
<
IOBluetoothDevice
>
device_with_address
(
const
QBluetoothAddress &address);
35
36
}
// Namespace DarwinBluetooth.
37
38
QT_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
75
QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTClassicPairing);
76
77
#
endif
QT_BT_MAC_AUTORELEASEPOOL
#define QT_BT_MAC_AUTORELEASEPOOL
Definition
btutility_p.h:78
DarwinBluetooth
Definition
btcentralmanager.mm:22
DarwinBluetooth::device_with_address
ObjCStrongReference< IOBluetoothDevice > device_with_address(const QBluetoothAddress &address)
Definition
btdevicepair.mm:14
QmlIR::Object::id
int id
Definition
qqmlirbuilder_p.h:312
qtconnectivity
src
bluetooth
darwin
btdevicepair_p.h
Generated on
for Qt by
1.18.0