/*! * * 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 MAdjustDGRequests.h * \author (last) Behrouz NematiPour * \date (last) 16-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 16-Apr-2021 * */ #pragma once // Qt //project #include "MAdjustRequestsBase.h" using namespace Gui; namespace Model { /*! * Simple request models * These are models to send the request for the doAdjustment * The the only reason thy have been defined to help overloading the adjustment methods * Otherwise the parameters are so tiny models. */ /*! * \brief The MAdjustDGDateTime class * \details The model to request starting a treatment * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:-----------:| * | 111 | 0x110 | Req | Y | UI | DG | Set RTC Date and Time | * * | Payload || * | || * | #1:(U32) | \ref mEpoch | * */ class MAdjustDGDateTimeReq : public MModel { public: quint32 mEpoch; // coco begin validated : Has been validated manually. QString toString() { return toString({mEpoch}); } // coco end static QString toString(const QVariantList &vParameters) { return MModel::toString("AdjustDGDateTime", vParameters); } static Can::Can_Id canid () { return Can::Can_Id::eChlid_UI_DG; } }; } typedef Model::MAdjustDGDateTimeReq AdjustDGDateTimeRequestData;