/*! * * Copyright (c) 2021-2024 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 MHDDebugText.cpp * \author (last) Behrouz NematiPour * \date (last) 07-Oct-2021 * \author (original) Behrouz NematiPour * \date (original) 29-Mar-2021 * */ #include "MHDDebugText.h" using namespace Model; QVariantList MHDDebugText::parameters() const { return { _data }; } bool MHDDebugText::fromByteArray(const QByteArray &vByteArray, int *) { // since this is a variable length debug text, it is not required to check for length // Qt simple conversion is used. _data = qPrintable(vByteArray); // Has to be printable return true ; } /*! * \brief MHDDebugText::data * \details Provides model's Data from the received messages data values * \return Data */ MHDDebugText::Data MHDDebugText::data() const { Data data; data.text = _data; return data; }