Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
31
32namespace DarwinBluetooth {
33
34ObjCStrongReference<IOBluetoothDevice> device_with_address(const QBluetoothAddress &address);
35
36} // Namespace DarwinBluetooth.
37
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
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
76
77#endif
const QBluetoothAddress & targetAddress()
\inmodule QtBluetooth
ObjCStrongReference< IOBluetoothDevice > device_with_address(const QBluetoothAddress &address)
Combined button and popup list for selecting options.
#define QT_NAMESPACE_ALIAS_OBJC_CLASS(__KLASS__)
Definition qcore_mac_p.h:58
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLenum GLuint id
[7]
GLuint start
GLuint GLuint64EXT address