Added generic signals between Core and GUI. You can use these to avoid having to...
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 17 May 2007 16:08:41 +0000 (16:08 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 17 May 2007 16:08:41 +0000 (16:08 +0000)
commit7a0c26e22498cabadd791be32614ba65f69125c3
tree52a5c8e7fb82132b3b766c2896a5bd48b235376c
parent8fc3a498f754f34b21d2a163e2a28323dae384cb
Added generic signals between Core and GUI. You can use these to avoid having to define custom
signals for everything you need to send. This uses the usual mechanism, but instead of sending
custom-named signals and perform a parameter conversion, we just emit the raw data and leave
the processing to the user. Note that this might have a slight performance impact on the receiver's
side if you connect the generic signal to several custom slots, because _all_ unhandled signals
are sent to _all_ generic handlers (which then need to filter out whichever signal they need).

Use as follows:
- define signaltype in main/proxy_common.h
- use slots CoreProxy::csGeneric(type, arg1, arg2, arg3)
         or  GUIProcy::gsGeneric(type, arg1, arg2, arg3)
- On the other side, the signal is emitted by the proxy, so you may connect your slot
  and then handle the sigtype as needed.
core/coreproxy.cpp
core/coreproxy.h
gui/buffer.cpp
gui/guiproxy.cpp
gui/guiproxy.h
main/main_mono.cpp