From: Manuel Nickschas Date: Tue, 28 Sep 2010 16:37:14 +0000 (+0200) Subject: Introduce event filters X-Git-Tag: 0.8-beta1~112 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;ds=inline;h=5e9a649d94d1832e0b4f3f296e8a2df2d8741d9b;hp=5e9a649d94d1832e0b4f3f296e8a2df2d8741d9b;p=quassel.git Introduce event filters You can now register event filters, either by using registerObject() and providing methods starting with "filter" (by default), similar to the process functions, or by using registerEventFilter(). These filter methods take an Event* and return a bool. If false, the event won't be delivered to the target object at all. A typical use case would be to only accept events that are targeted to a particular network and ignoring the rest, without having to check the net in each event handler. Note that priority is ignored; for registerObject(), filters are added with the most specialized first, and for registerEventFilter() you're responsible for the correct order. ---