/*! * * 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 mtreatmentadjustduration.h * \date 4/27/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "types.h" // forward declarations class tst_models; namespace Model { class MAdjustDurationResponse { // friends friend class ::tst_models; public: QString stringPrefix = "Adjust Duration"; struct Data { bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ quint32 mDuration = 0; /*!< Duration value of type quint32 extracted out */ float mUFVolume = 0; /*!< UF Volume value of type quint32 extracted out */ }; private: struct { Types::U32 mAccepted ; Types::U32 mReason ; Types::U32 mDuration ; Types::F32 mUFVolume ; } _data; public: MAdjustDurationResponse () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); Data data() const; }; } typedef Model::MAdjustDurationResponse::Data AdjustDurationResponseData;