Skip to main content
Senior
May 2, 2025
Question

MVP base class moddified

  • May 2, 2025
  • 1 reply
  • 255 views

Does anyone have an improved example to understand the MVP[1] (and widget/containers),
where you change the base implementation of the MVP ?

I was able to defined default implementation for the Model and the View but not for the Presenter or Drawables.

class ModelListener
{
public:
 virtual char* getPAmessage(eVerbose_t type) { return model->PAmessage; }
...
}

class View : public Screen
{
public:
 char* getPAmessage(eVerbose_t type) { return presenter->getPAmessage(type); }
...
}


The goal was to make a signal that is understood by every layer without having to use boilerplate at each new implementation of these interfaces.

 [1] Example: "Understanding Application Structure"

1 reply

ST Employee
May 5, 2025

Hello @Marc_LM,

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

Best regards,
Maxime

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.