MVP base class moddified
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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"
- Labels:
-
TouchGFX Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-04 11:38 PM
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.
