Attach log message to a slot
The logger could attach the message to a SLOT as follows:
template <typename F>
QMetaObject::Connection attachSlot(F);
template <typename F>
QMetaObject::Connection attachSlot(F, Qt::ConnectionType type);
It implies to add a dtkLogDestinationSlot
that would be in charge to emit the signal. This signal would be connected to the target SLOT via the method attachSlot
.
The implementation could be based on the one used in dtkCoreParameter
.
Edited by KLOCZKO Thibaud