Barrier for Qt signals.
QSimpleSignalAggregator *aggregator = new QSimpleSignalAggregator(this);
QObject::connect(aggregator, SIGNAL(done()), this, SLOT(allSignalsInvoked()));
aggregator->aggregate(foo, SIGNAL(done()));
aggregator->aggregate(bar, SIGNAL(done()));
As soon as foo::done()
and bar::done()
are emitted,
aggregator::done()
is emitted.
Add the sender's specified signal to the list of monitored signals.
Emit the specified object's signal when all monitored signals have
been witnessed (rather than the default done()
from the
QSignalAggregator
object).
Forget about witnessed signals and start monitoring for all
aggregated
signals again.
Compile into a static library, placed in build/lib
.
Build tests, placed in build/test/bin
.
Build doxygen documentation, placed in doc
.
MIT © Eric Crosson