Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qbluetoothuuid_darwin.mm
Go to the documentation of this file.
1
// Copyright (C) 2023 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
#include "
darwin/btutility_p.h
"
5
6
#include "
qbluetoothuuid.h
"
7
8
QT_BEGIN_NAMESPACE
9
18
QBluetoothUuid
QBluetoothUuid::fromCBUUID(CBUUID *cbUuid)
19
{
20
if
(!cbUuid)
21
return
{};
22
23
return
DarwinBluetooth::qt_uuid
(cbUuid);
24
}
25
37
CBUUID *QBluetoothUuid::toCBUUID()
const
38
{
39
const
auto
cbUuidGuard =
DarwinBluetooth::cb_uuid
(*
this
);
40
// cb_uuid returns a strong reference (RAII object). Let
41
// it do its job and release, but we return auto-released
42
// CBUUID, as documented.
43
return
[[cbUuidGuard.data() retain] autorelease];
44
}
45
46
QT_END_NAMESPACE
btutility_p.h
QBluetoothUuid
\inmodule QtBluetooth
Definition
qbluetoothuuid.h:29
DarwinBluetooth::cb_uuid
ObjCStrongReference< CBUUID > cb_uuid(const QBluetoothUuid &qtUuid)
Definition
btutility.mm:174
DarwinBluetooth::qt_uuid
QBluetoothUuid qt_uuid(NSUUID *nsUuid)
Definition
btledeviceinquiry.mm:21
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qbluetoothuuid.h
qtconnectivity
src
bluetooth
qbluetoothuuid_darwin.mm
Generated by
1.9.7