Index: sources/device/DeviceView.cpp =================================================================== diff -u -rf38edd22f7b63694c21b83d6f4b69ea618390126 -r80922f18391e9bb04eea491a2412f5c7923d32a3 --- sources/device/DeviceView.cpp (.../DeviceView.cpp) (revision f38edd22f7b63694c21b83d6f4b69ea618390126) +++ sources/device/DeviceView.cpp (.../DeviceView.cpp) (revision 80922f18391e9bb04eea491a2412f5c7923d32a3) @@ -75,3 +75,35 @@ response(true); } +// -------------------------------- +// developer implementation section +// -------------------------------- + +void VDevice::doInitBluetoothPairedReset() { + // DEBUG : + qDebug() << "HERE Init"; + DeviceBluetoothPairedResetRequestData data; + emit didAttributeRequest(data); +} + +void VDevice::bluetoothPairedResetRequest(const quint8 &) { + // DEBUG : + qDebug() << "HERE Request"; + // DeviceBluetoothPairedResetRequestData data; + // emit didAttributeRequest(data); +} + +void VDevice::onAttributeResponse(const DeviceBluetoothPairedResetResponseData &vData) { + // DEBUG : + qDebug() << "HERE Response" << vData.mAccepted << vData.mReason << vData.mMessage; + // this has to be called to let Gui to set to old value that device controller provided. + status(vData.mMessage); + + accepted(vData.mAccepted); + reason (vData.mReason ); + + // has to be the last one + emit bluetoothPairedResetChanged(vData.mReason); + response(true); +} +