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
dummy_helper.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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 <QtCore/QGlobalStatic>
5#include <QtCore/QLoggingCategory>
6
8
10
11Q_DECLARE_LOGGING_CATEGORY(QT_BT)
12
13Q_GLOBAL_STATIC_WITH_ARGS(bool, dummyWarningPrinted, (false))
14
15void printDummyWarning()
16{
17 if (!*dummyWarningPrinted()) {
18 qCWarning(QT_BT) << "Dummy backend running. Qt Bluetooth module is non-functional.";
19 *dummyWarningPrinted() = true;
20 }
21}
22
23QT_END_NAMESPACE