/*! * * 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 MDebugText.h * \date 7/9/2020 * \author Behrouz NematiPour * */ #include "MDGDebugText.h" using namespace Model; QVariantList MDGDebugText::parameters() const { return { _data }; } bool MDGDebugText::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 ; } MDGDebugText::Data MDGDebugText::data() const { Data data; data.text = _data; return data; }