Port to newer api

This is a blind port, I have not tested it but allows this code to
compile.
parent c0a417e9
......@@ -58,7 +58,6 @@ void BluetoothPairingHandler::packageReceived(const NetworkPackage& np)
return;
}
Daemon::instance()->askPairingConfirmation(this);
setInternalPairStatus(RequestedByPeer);
}
......@@ -144,7 +143,9 @@ void BluetoothPairingHandler::setInternalPairStatus(BluetoothPairingHandler::Int
m_status = status;
if (status == Paired) {
deviceLink()->setPairStatus(DeviceLink::Paired);
} else {
} else if (status == NotPaired){
deviceLink()->setPairStatus(DeviceLink::NotPaired);
} else if (status == RequestedByPeer) {
Q_EMIT deviceLink()->pairingRequest(this);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment