/*! * * 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 : don't remove #include "VView.h" #include "DeviceGlobals.h" #include "DeviceModels.h" // define #define _VDevice View::VDevice::I() // namespace namespace View { /*! * \brief The VDevice class * \details The device view to interact with the UI. * */ class VDevice : public QObject { Q_OBJECT PROPERTY( bool , accepted , 0) TRIGGER ( quint32 , reason , 0) TRIGGER ( bool , response , true) ATTRIBUTE ( quint8 , brightness , 0 ) VIEW_DEC_CLASS(VDevice) signals: void didAttributeRequest (const DeviceBrightnessRequestData &vData); private slots: void onAttributeResponse(const DeviceBrightnessResponseData &vData); }; }