/*! * * 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 VAlarmActiveList.h * \author (last) denali * \date (last) 5/26/2021 * \author (original) denali * \date (original) 5/26/2021 * */ #pragma once // Qt #include // Project #include "main.h" // Doxygen : don't remove #include "VAdjustmentResponseBase.h" #include "MAlarmActiveList.h" namespace View { /*! * \brief The VAlarmActiveList class * \details The class to receive the list of active alarms * * \sa Models::MAlarmActiveListResponse * */ class VAlarmActiveList : public VAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; // 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) // coco end PROPERTY( quint32, a0ID , 0 ) PROPERTY( quint32, a1ID , 0 ) PROPERTY( quint32, a2ID , 0 ) PROPERTY( quint32, a3ID , 0 ) PROPERTY( quint32, a4ID , 0 ) PROPERTY( quint32, a5ID , 0 ) PROPERTY( quint32, a6ID , 0 ) PROPERTY( quint32, a7ID , 0 ) PROPERTY( quint32, a8ID , 0 ) PROPERTY( quint32, a9ID , 0 ) PROPERTY( QString, a0Text , "") PROPERTY( QString, a1Text , "") PROPERTY( QString, a2Text , "") PROPERTY( QString, a3Text , "") PROPERTY( QString, a4Text , "") PROPERTY( QString, a5Text , "") PROPERTY( QString, a6Text , "") PROPERTY( QString, a7Text , "") PROPERTY( QString, a8Text , "") PROPERTY( QString, a9Text , "") PROPERTY(QStringList, alarmIDs , {}) PROPERTY(QStringList, alarmTexts, {}) PROPERTY(QString , status , "") VIEW_DEC_CLASS_ADJUSTMENT(VAlarmActiveList, AlarmActiveListResponseData) QString alarmIDText(quint32 vID); public slots: void doRequest(); signals: /*! * \brief didAdjustment * \details the notification signal to send the user's Disinfect Request * \param vData - data model includes request information */ void didAdjustment(const AlarmActiveListRequestData &vData); }; }