Index: sources/device/DeviceView.cpp =================================================================== diff -u -re2dc7bd9995a3bb410aa472a1f95c1cc9ba3136d -r47c8f13876317ba36500400f894d96c9bce9eb17 --- sources/device/DeviceView.cpp (.../DeviceView.cpp) (revision e2dc7bd9995a3bb410aa472a1f95c1cc9ba3136d) +++ sources/device/DeviceView.cpp (.../DeviceView.cpp) (revision 47c8f13876317ba36500400f894d96c9bce9eb17) @@ -43,19 +43,6 @@ emit didAttributeRequest(data); } -/*! - * \brief VDevice::onAttributeResponse - * \param vData - * - * HERE Request 100 - * _GuiController doAttributeRequest - * _ApplicationController onAttributeRequest - * _DeviceController onAttributeRequest - * _ApplicationController onAttributeResponse - * _GuiController onAttributeResponse - * HERE Response 100 - * - */ void VDevice::onAttributeResponse(const DeviceBrightnessResponseData &vData) { // DEBUG : qDebug() << "HERE Response" << vData.mBrightnessPercent; if ( vData.mAccepted ) { @@ -75,27 +62,19 @@ response(true); } -// -------------------------------- -// developer implementation section -// -------------------------------- - void VDevice::doInitBluetoothPairedReset() { - // DEBUG : - qDebug() << "HERE Init"; + // DEBUG : qDebug() << "HERE Init"; DeviceBluetoothPairedResetRequestData data; emit didAttributeRequest(data); } void VDevice::bluetoothPairedResetRequest(const quint8 &) { - // DEBUG : - qDebug() << "HERE Request"; - // DeviceBluetoothPairedResetRequestData data; - // emit didAttributeRequest(data); + // DEBUG : qDebug() << "HERE Request"; + // Nothing to be done here. This property will not be assigned. } void VDevice::onAttributeResponse(const DeviceBluetoothPairedResetResponseData &vData) { - // DEBUG : - qDebug() << "HERE Response" << vData.mAccepted << vData.mReason << vData.mMessage; + // 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); @@ -107,3 +86,26 @@ response(true); } +void VDevice::doInitBluetoothPairedQuery() { + // DEBUG : qDebug() << "HERE Init"; + DeviceBluetoothPairedQueryRequestData data; + emit didAttributeRequest(data); +} + +void VDevice::bluetoothPairedQueryRequest(const QStringList &) { + // DEBUG : qDebug() << "HERE Request"; + // Nothing to be done here. This property will not be assigned. +} + +void VDevice::onAttributeResponse(const DeviceBluetoothPairedQueryResponseData &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 bluetoothPairedQueryChanged(vData.mInfo); + response(true); +}