Index: sources/device/DeviceView.h =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -r4ef7cb77805b64ac89966a9581cdc111520f21d1 --- sources/device/DeviceView.h (.../DeviceView.h) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/device/DeviceView.h (.../DeviceView.h) (revision 4ef7cb77805b64ac89966a9581cdc111520f21d1) @@ -47,6 +47,25 @@ ATTRIBUTE ( quint8 , bluetoothPairedReset, 0, BluetoothPairedReset ) ATTRIBUTE ( QStringList , bluetoothPairedQuery, {}, BluetoothPairedQuery ) + ATTRIBUTE ( QString , cryptSetup , "", CryptSetup ) + PROPERTY ( bool , cryptSetupEnabled , true ) + + ATTRIBUTE ( bool , rootSSHAccess , false, RootSSHAccess ) + + ATTRIBUTE ( QString , factoryReset , "", FactoryReset ) + PROPERTY ( bool , factoryResetEnabled , true ) + + ATTRIBUTE ( QString , decommission , "", Decommission ) + PROPERTY ( bool , decommissionEnabled , true ) + VIEW_DEC_CLASS(VDevice) + +private: + bool isCompleteResponse(Model::MDeviceResponseBase::Data vData) { + // Either the script exited successfully or the script failed and the reason is provided + // There are situaltoins that the script is using the attribute response to update the UI + // but it is not the final/completed response + return vData.mAccepted || (!vData.mAccepted && vData.mReason != 0 ); + } }; }