Hello,
i am struggling on managing popups. I want to create a popup handler class or something to handle creation and stacking of popups. I have following requierments for popups:
- Stacking Priority: Error popups must be on top, then warning and then others
- If an error occurs some popups should not be opened anymore
- Popups should only be created by the handler to avoid chaos
- Popups can be created by DeviceDriver/Middleware
- Usage of generic popups with text property (the text to display can come from the middleware)
My first try was to put the popup handler into the Device class, but there it is not possible to call PresentDialog() method nor to call methods from application.
Without using a generic popup it is possible to use signal-slot functionality to tell the application to open a specific popup. But it is not possible to pass an argument via signal. Therefore i have no idea how to get the text after popup creation.
Is there a recommanded way how to fulfill all requierements?
Kind regards,
Jonas