This commit is contained in:
2024-10-25 13:46:00 +02:00
parent a9d8c070bc
commit 92740c8dbe
19 changed files with 59 additions and 49 deletions

View File

@ -27,10 +27,12 @@ StreamManager::Connection::Connection(
}
}
StreamManager::StreamManager(ObjectStore2& os) : _os(os) {
_os.subscribe(this, ObjectStore_Event::object_construct);
//_os.subscribe(this, ObjectStore_Event::object_update);
_os.subscribe(this, ObjectStore_Event::object_destroy);
StreamManager::StreamManager(ObjectStore2& os) : _os(os), _os_sr(_os.newSubRef(this)) {
_os_sr
.subscribe(ObjectStore_Event::object_construct)
//.subscribe(ObjectStore_Event::object_update)
.subscribe(ObjectStore_Event::object_destroy)
;
}
StreamManager::~StreamManager(void) {

View File

@ -57,6 +57,7 @@ namespace Components {
class StreamManager : protected ObjectStoreEventI {
friend class StreamManagerUI; // TODO: make this go away
ObjectStore2& _os;
ObjectStore2::SubscriptionReference _os_sr;
struct Connection {
ObjectHandle src;