diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-12-16 16:02:37 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-20 09:06:10 +0100 |
commit | 94f862e2786c5e9b558ae6ab6f524842949c0953 (patch) | |
tree | 8905bcdae7592fb1ca26ea43e3330b03b62dbede /src/bluetooth/qbluetoothlocaldevice_qnx.cpp | |
parent | f661b7fbb19d845b23450c57127020ee86df578d (diff) |
Use QLoggingCategory to categorize the various debug output streams
Task-number: QTBUG-32253
Change-Id: I193162407d0fc7eca83689e31f03e1641a494ab0
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothlocaldevice_qnx.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothlocaldevice_qnx.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice_qnx.cpp b/src/bluetooth/qbluetoothlocaldevice_qnx.cpp index 780639f6..bba92199 100644 --- a/src/bluetooth/qbluetoothlocaldevice_qnx.cpp +++ b/src/bluetooth/qbluetoothlocaldevice_qnx.cpp @@ -194,7 +194,7 @@ void QBluetoothLocalDevicePrivate::setHostMode(QBluetoothLocalDevice::HostMode m } //If the device is in PowerOff state and the profile is changed then the power has to be turned on if (currentHostMode == QBluetoothLocalDevice::HostPoweredOff) { - qBBBluetoothDebug() << "Powering on"; + qCDebug(QT_BT_QNX) << "Powering on"; powerOn(); } @@ -258,9 +258,9 @@ void QBluetoothLocalDevicePrivate::setAccess(int access) void QBluetoothLocalDevicePrivate::controlReply(ppsResult result) { - qBBBluetoothDebug() << Q_FUNC_INFO << result.msg << result.dat; + qCDebug(QT_BT_QNX) << Q_FUNC_INFO << result.msg << result.dat; if (!result.errorMsg.isEmpty()) { - qWarning() << Q_FUNC_INFO << result.errorMsg; + qCWarning(QT_BT_QNX) << Q_FUNC_INFO << result.errorMsg; if (result.msg == QStringLiteral("initiate_pairing")) q_ptr->error(QBluetoothLocalDevice::PairingError); else @@ -270,16 +270,16 @@ void QBluetoothLocalDevicePrivate::controlReply(ppsResult result) void QBluetoothLocalDevicePrivate::controlEvent(ppsResult result) { - qBBBluetoothDebug() << Q_FUNC_INFO << "Control Event" << result.msg; + qCDebug(QT_BT_QNX) << Q_FUNC_INFO << "Control Event" << result.msg; if (result.msg == QStringLiteral("access_changed")) { if (__newHostMode == -1 && result.dat.size() > 1 && result.dat.first() == QStringLiteral("level")) { QBluetoothLocalDevice::HostMode newHostMode = hostMode(); - qBBBluetoothDebug() << "New Host mode" << newHostMode; + qCDebug(QT_BT_QNX) << "New Host mode" << newHostMode; Q_EMIT q_ptr->hostModeStateChanged(newHostMode); } } else if (result.msg == QStringLiteral("pairing_complete")) { - qBBBluetoothDebug() << "pairing completed"; + qCDebug(QT_BT_QNX) << "pairing completed"; if (result.dat.contains(QStringLiteral("addr"))) { const QBluetoothAddress address = QBluetoothAddress( result.dat.at(result.dat.indexOf(QStringLiteral("addr")) + 1)); @@ -290,18 +290,18 @@ void QBluetoothLocalDevicePrivate::controlEvent(ppsResult result) result.dat.at(result.dat.indexOf(QStringLiteral("trusted")) + 1) == QStringLiteral("true")) { pairingStatus = QBluetoothLocalDevice::AuthorizedPaired; } - qBBBluetoothDebug() << "pairing completed" << address.toString(); + qCDebug(QT_BT_QNX) << "pairing completed" << address.toString(); Q_EMIT q_ptr->pairingFinished(address, pairingStatus); } } else if (result.msg == QStringLiteral("device_deleted")) { - qBBBluetoothDebug() << "device deleted"; + qCDebug(QT_BT_QNX) << "device deleted"; if (result.dat.contains(QStringLiteral("addr"))) { const QBluetoothAddress address = QBluetoothAddress( result.dat.at(result.dat.indexOf(QStringLiteral("addr")) + 1)); Q_EMIT q_ptr->pairingFinished(address, QBluetoothLocalDevice::Unpaired); } } else if (result.msg == QStringLiteral("radio_shutdown")) { - qBBBluetoothDebug() << "radio shutdown"; + qCDebug(QT_BT_QNX) << "radio shutdown"; Q_EMIT q_ptr->hostModeStateChanged(QBluetoothLocalDevice::HostPoweredOff); } } |