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
btledeviceinquiry_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 BTLEDEVICEINQUIRY_P_H
5#define BTLEDEVICEINQUIRY_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
20#include "btgcdtimer_p.h"
21#include "btutility_p.h"
22
23#include <QtCore/private/qcore_mac_p.h>
24
25#include <QtCore/qglobal.h>
26
27#include <Foundation/Foundation.h>
28
29#include <CoreBluetooth/CoreBluetooth.h>
30
32
33class QBluetoothUuid;
34
35namespace DarwinBluetooth
36{
37
39
40} // namespace DarwinBluetooth
41
42QT_END_NAMESPACE
43
44using QT_PREPEND_NAMESPACE(DarwinBluetooth)::LECBManagerNotifier;
45using QT_PREPEND_NAMESPACE(DarwinBluetooth)::ObjCScopedPointer;
46
57
58@interface QT_MANGLE_NAMESPACE(DarwinBTLEDeviceInquiry) : NSObject<CBCentralManagerDelegate, QT_MANGLE_NAMESPACE(GCDTimerDelegate)>
59- (id)initWithNotifier:(LECBManagerNotifier *)aNotifier;
60- (void)dealloc;
61
62// IMPORTANT: both 'startWithTimeout' and 'stop' MUST be executed on the "Qt's
63// LE queue".
64- (void)startWithTimeout:(int)timeout;
65- (void)stop;
66
67@end
68
69QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTLEDeviceInquiry);
70
71#endif
@ InquiryStarting
@ InquiryActive
@ ErrorLENotSupported
@ ErrorNotAuthorized
@ InquiryFinished
@ InquiryCancelled
@ ErrorPoweredOff
const int powerOffTimeoutMS
QBluetoothUuid qt_uuid(IOBluetoothSDPUUID *uuid)
Definition btutility.mm:91
AdvertisementData(NSDictionary *AdvertisementData)
QHash< QBluetoothUuid, QByteArray > serviceData
QHash< quint16, QByteArray > manufacturerData