/*! * * Copyright (c) 2021-2025 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 VAdjustmentAlarmVolume.h * \author (last) Behrouz NematiPour * \date (last) 06-Aug-2023 * \author (original) Behrouz NematiPour * \date (original) 07-Jun-2021 * */ #pragma once #include // Project #include "main.h" // Doxygen : do not remove #include "VAdjustmentResponseBase.h" #include "MAdjustHDRequests.h" #include "MAdjustHDAlarmVolumeResponse.h" #include "MSettings.h" namespace View { /*! * \brief The VAdjustmentAlarmVolume class * \details View for Model's Data representation. * * \sa Model::MAdjustAlarmVolumeResponse * */ class VAdjustmentAlarmVolume : public VAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; AdjustHDAlarmVolumeRequestData _data; // disabled coco begin validated: // The property adjustment_Triggered has to be always true // and to always trigger the change event to work as a notifier for GUI // has been manually tested that it works perfectly fine TRIGGER( bool , adjustment , 0) // disabled coco end // HD AlarmVolume data PROPERTY( quint8 , hdAlarmVolume , 5) //TODO Needs to get maxVolume from MAdjustHDAlarmVolumeReq PROPERTY( QString , status , "") VIEW_DEC_CLASS(VAdjustmentAlarmVolume) VIEW_DEC_SLOT(AdjustHDAlarmVolumeResponseData) VIEW_DEC_SLOT(SettingsData) // ---------- Alarm Volume public slots: void doAdjustment(quint8 vVolume); signals: /*! * \brief didAdjustment * \details the notification signal to send the user's Request * \param vData - data model includes request information */ void didAdjustment(const AdjustHDAlarmVolumeRequestData &vData); }; }