Longer term projects

John Ralls jralls at ceridwen.us
Sun Jan 29 17:00:31 EST 2012

On Jan 29, 2012, at 10:33 AM, Phil Longstaff wrote:

> Have you given any thought to what it will take to replace qof event notifications with gobject signals?  The models are substantially different.  With qof, you register for all events and get everything, and then need to weed out what you are interested in, based on event type and object type.  To receive gobject signals, you need to connect to the signal for specific instances.
> For some things, e.g. new prices, we could use the pricedb as the object which emits the signals when new prices are added or prices are modified.  How about for new engine objects?  do we need a gnc_engine object for these signals? 

All of the engine classes are derived from QofInstance, so it can be the source of the signal if we need a global source. In a lot of cases we can probably use the GObject Notify signal, which is emitted for every property change. Remember that one can also register an emission hook to get behavior more like QofEvents.

John Ralls

More information about the gnucash-devel mailing list