Dirk Meyer wrote: > Gustavo Sverzut Barbieri wrote: >> Hello, >> >> Dischi, Mike Ruelle and I was talking on IRC the other day and we agree >> that we need an Event Listener Class. > > What is that? You need something that gets every event inside freevo? > That should be easy. Right now we sent to event to the app or the menu > and if they don't process it, we send it to the list of > DaemonPlugins. We could reverse that: first send to event to the > DaemonPlugins, after that the normal ones. This is no difference, > because an event is only needed by one thing. But by reversing it, you > can create a DaemonPlugin that parses all events (you get them), but > returns FALSE every time (you don't process them) and they will be > handled to other handlers.
OK, I had just 5 mins while waiting for dinner. You can now set self.event_listener to TRUE in your DaemonPlugin and you will get all events. Freevo doesn't care if you return TRUE or FALSE, you are only a listener. It's untested, please let me know if it works. Dischi -- C++: The power, elegance and simplicity of a hand grenade. (Kenneth C. Dyke) ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
