I was thinking "the other way round"
First to create abstract class observableDevice,
all devices should inherit from this one,
the logwidget can take observableDevice as argument in constructor,
and in constructor i can connect apropriate signals and slots
This example is looks interesting.
If i understand well, you suggest that i insert new layer (CommunicationControler) between devices and ports,
devices now comunicate only with controllers, controllers are observable,
log widget observes controller not device as i thought (with extra conditions if needed),
and, what is important, no source file for device is changed, just their connections moved to controllers.
I will definitly look more into this example, thanks
Bookmarks