Port to newer api

This is a blind port, I have not tested it but allows this code to
compile.
This commit is contained in:
Àlex Fiestas 2017-05-24 23:54:00 +02:00
parent c0a417e9e4
commit abfa8c8183
No known key found for this signature in database
GPG key ID: 60AC676CEC24059E

View file

@ -58,7 +58,6 @@ void BluetoothPairingHandler::packageReceived(const NetworkPackage& np)
return; return;
} }
Daemon::instance()->askPairingConfirmation(this);
setInternalPairStatus(RequestedByPeer); setInternalPairStatus(RequestedByPeer);
} }
@ -144,7 +143,9 @@ void BluetoothPairingHandler::setInternalPairStatus(BluetoothPairingHandler::Int
m_status = status; m_status = status;
if (status == Paired) { if (status == Paired) {
deviceLink()->setPairStatus(DeviceLink::Paired); deviceLink()->setPairStatus(DeviceLink::Paired);
} else { } else if (status == NotPaired){
deviceLink()->setPairStatus(DeviceLink::NotPaired); deviceLink()->setPairStatus(DeviceLink::NotPaired);
} else if (status == RequestedByPeer) {
Q_EMIT deviceLink()->pairingRequest(this);
} }
} }