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
btsdpinquiry_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 BTSDPINQUIRY_H
5#define BTSDPINQUIRY_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 "qbluetoothuuid.h"
20
21#include <QtCore/private/qglobal_p.h>
22#include <QtCore/private/qcore_mac_p.h>
23#include <QtCore/qlist.h>
24
25#include <Foundation/Foundation.h>
26
27#include <IOBluetooth/IOBluetooth.h>
28
29@class QT_MANGLE_NAMESPACE(DarwinBTSDPInquiry);
30
31QT_BEGIN_NAMESPACE
32
33class QBluetoothServiceInfo;
34class QVariant;
35
36namespace DarwinBluetooth {
37
38class SDPInquiryDelegate;
39
40void extract_service_record(IOBluetoothSDPServiceRecord *record, QBluetoothServiceInfo &serviceInfo);
41QVariant extract_attribute_value(IOBluetoothSDPDataElement *dataElement);
42QList<QBluetoothUuid> extract_services_uuids(IOBluetoothDevice *device);
43
44} // namespace DarwinBluetooth
45
46QT_END_NAMESPACE
47
48@interface QT_MANGLE_NAMESPACE(DarwinBTSDPInquiry) : NSObject
49
50- (id)initWithDelegate:(QT_PREPEND_NAMESPACE(DarwinBluetooth::SDPInquiryDelegate) *)aDelegate;
51- (void)dealloc;
52
53- (IOReturn)performSDPQueryWithDevice:(const QBluetoothAddress &)address;
54- (IOReturn)performSDPQueryWithDevice:(const QBluetoothAddress &)address
55 filters:(const QList<QBluetoothUuid> &)filters;
56
57- (void)stopSDPQuery;
58
59- (void)sdpQueryComplete:(IOBluetoothDevice *)aDevice status:(IOReturn)status;
60
61@end
62
63QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTSDPInquiry);
64
65#endif
#define QT_BT_MAC_AUTORELEASEPOOL
Definition btutility_p.h:78
\inmodule QtBluetooth
QList< QBluetoothUuid > extract_services_uuids(IOBluetoothDevice *device)
void extract_service_record(IOBluetoothSDPServiceRecord *record, QBluetoothServiceInfo &serviceInfo)
QVariant extract_attribute_value(IOBluetoothSDPDataElement *dataElement)