enh(core): wrap notification signal emission in a function
Description
When using notification to popup message to user in a service we always need to rewrite boilerplate code to get the good signal definition and to send it with a std::string as parameters (the message).
Proposal
We can easily wrap this in a method in IService called notify(<TYPE>, <MESSAGE>)
with:
-
<TYPE>
an enum class with the following valuesINFO, SUCCESS, FAILURE
-
<MESSAGE>
the std::string message.
Outcomes
Better readability of code, reducing boilerplate code BUT this could be a bit misleading because it hide the fact that notify emit signals.