-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Integration with signalslot? #23
Comments
Seems like a good idea, it would alleviate the burden of dealing with many callbacks that simply defer to other objects. Where would the callable slots be defined though? On the |
On 21/05/15 16:52, Maximilien Riehl wrote:
I was simply thinking you'd pass in an option in the constructor, and it If you wanted to pass a specific Signal instance for a given signal Some untested code:
That would in theory, hook the emit method of the signal as the Regards,Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... |
I like the approach. If you have time to implement this, I'd definitely merge it. I have a few personal projects where the integration with signalslot would greatly simplify the code! |
+1 .. I use both fysom and signalslot, would be interesting to play with a tighter integration |
Just a thought, is it worth providing some integration into
signalslot
so the events generated by the state machine are exported to other objects as "signals"? I've been managing this by hand in my own code, and found it a very powerful way to interact with Fysom.It could be an optional feature turned on by specifying what events you want signals created for in the constructor. e.g.
The signals could be properties with _sig appended to the name to avoid confusion.
signalslot
is here: https://github.com/Numergy/signalslotIf there's interest I might look into implementing it proper.
The text was updated successfully, but these errors were encountered: