Index: sources/model/hd/adjustment/MTreatmentAdjustRequests.h =================================================================== diff -u -r5215e145a0f26a20c99e3f10af6ac8a9c3b67383 -r179783b8085cac87e0fe9f247b475f2c64886174 --- sources/model/hd/adjustment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 5215e145a0f26a20c99e3f10af6ac8a9c3b67383) +++ sources/model/hd/adjustment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 179783b8085cac87e0fe9f247b475f2c64886174) @@ -20,7 +20,7 @@ //project #include "GuiGlobals.h" - +#include "MessageGlobals.h" using namespace Gui; namespace Model { @@ -47,6 +47,15 @@ QString senderID = "UI,"; return QString(senderID + vStringPrefix + "," + vParameters.toStringList().join(',')); } + +public: + /*! + * \brief canid returns the default channel id of the message. + * it can be modified by the specific message which inherits the MModel. + * \return Can::Can_Id + */ + static Can::Can_Id canid () { return Can::Can_Id::eChlid_UI_HD; } + }; /*! @@ -473,6 +482,7 @@ */ class MAdjustVersionsReq : public MModel { public: + // coco begin validated : Has been validated manually. // This object is used statically for now, kept the logic for later usage. QString toString() { @@ -482,6 +492,8 @@ static QString toString(const QVariantList &vParameters) { return MModel::toString("Version", vParameters); } + + static Can::Can_Id canid () { return Can::eChlid_UI_Sync; } }; //// ---------- Alarms