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
qbluetoothdevicediscoveryagent_p.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
8
9#include "dummy/dummy_helper_p.h"
10
11#define QT_DEVICEDISCOVERY_DEBUG
12
14
15QBluetoothDeviceDiscoveryAgentPrivate::QBluetoothDeviceDiscoveryAgentPrivate(
16 const QBluetoothAddress &deviceAdapter,
17 QBluetoothDeviceDiscoveryAgent *parent)
18 : lowEnergySearchTimeout(-1),
19 q_ptr(parent)
20{
21 Q_UNUSED(deviceAdapter);
22 printDummyWarning();
23}
24
25QBluetoothDeviceDiscoveryAgentPrivate::~QBluetoothDeviceDiscoveryAgentPrivate()
26{
27}
28
29bool QBluetoothDeviceDiscoveryAgentPrivate::isActive() const
30{
31 return false;
32}
33
34QBluetoothDeviceDiscoveryAgent::DiscoveryMethods QBluetoothDeviceDiscoveryAgent::supportedDiscoveryMethods()
35{
36 return QBluetoothDeviceDiscoveryAgent::NoMethod;
37}
38
39void QBluetoothDeviceDiscoveryAgentPrivate::start(QBluetoothDeviceDiscoveryAgent::DiscoveryMethods)
40{
41 Q_Q(QBluetoothDeviceDiscoveryAgent);
42 lastError = QBluetoothDeviceDiscoveryAgent::UnsupportedPlatformError;
43 errorString = QBluetoothDeviceDiscoveryAgent::tr("Device discovery not supported on this platform");
44
45 emit q->errorOccurred(lastError);
46}
47
48void QBluetoothDeviceDiscoveryAgentPrivate::stop()
49{
50}
51
52
53
54QT_END_NAMESPACE
55
56#include "moc_qbluetoothdevicediscoveryagent_p.cpp"