_btLocalDevice = new QBluetoothLocalDevice(this); connect(_btLocalDevice, SIGNAL(pairingFinished(const QBluetoothAddress &, QBluetoothLocalDevice::Pairing)), this, SLOT(pairingFinished(const QBluetoothAddress &, QBluetoothLocalDevice::Pairing)));
if (!QDBusConnection::systemBus().connect(QString(), QString(), "org.bluez.Device", "PropertyChanged", this, SLOT(propertyChanged(QString,QVariant)))) qDebug("BluetoothClient::Failed to connect dbus signal isValid: %d", QDBusConnection::systemBus().lastError().isValid()); qDebug("BluetoothClient::Failed to connect dbus signal type: %d", QDBusConnection::systemBus().lastError().type()); qDebug("BluetoothClient::Failed to connect dbus signal: %s", qPrintable(QDBusConnection::systemBus().lastError().name()));