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:
parent
c0a417e9e4
commit
abfa8c8183
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue