/*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file DeviceView.h * \author (last) Behrouz NematiPour * \date (last) 01-Jun-2021 * \author (original) Behrouz NematiPour * \date (original) 01-Jun-2021 * */ #pragma once // Qt #include // Project #include "main.h" // Doxygen : do not remove #include "VView.h" #include "DeviceGlobals.h" #include "DeviceModels.h" // define // namespace namespace View { /*! * \brief The VDevice class * \details The device view to interact with the UI. * */ class VDevice : public QObject { Q_OBJECT TRIGGER ( bool , response , true) PROPERTY ( bool , accepted , 0) TRIGGER ( quint32 , reason , 0) PROPERTY ( QString , status , "") ATTRIBUTE ( quint8 , brightness , 0, Brightness ) ATTRIBUTE ( quint8 , bluetoothPairedReset, 0, BluetoothPairedReset ) ATTRIBUTE ( QStringList , bluetoothPairedQuery, {}, BluetoothPairedQuery ) VIEW_DEC_CLASS(VDevice) }; }