2025-05-02 1:26 PM
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"