21 , m_parent_subscribed(false)
Defines class SessionItemController.
Defines class SessionItem.
void unsubscribe(const void *caller)
Cancels all subscriptions of given caller.
void setOnItemDestroy(std::function< void(SessionItem *)> f, const void *caller=nullptr)
void setUnsubscribeCallback(callback_t fun)
void setItem(SessionItem *item)
void setSubscribeCallback(callback_t fun)
SessionItemController(QObject *prt)
std::function< void(void)> callback_t
callback_t m_subscribe_callback
void unsubscribeParent()
Calls additional callback on un.
~SessionItemController() override
callback_t m_unsubscribe_callback
void onControllerDestroy()
SessionItem * currentItem()
void unsubscribe()
Fully unsubscribes the parent from listening item's signals. Controller stays active to track item de...
void subscribe()
Subscribe parent to item's signals.
Base class for a GUI data item.
ModelMapper * mapper()
Returns the current model mapper of this item. Creates new one if necessary.