15 #ifndef BORNAGAIN_GUI_VIEW_COMMON_SESSIONITEMCONTROLLER_H
16 #define BORNAGAIN_GUI_VIEW_COMMON_SESSIONITEMCONTROLLER_H
Provides subscribe/unsubscribe mechanism for any QObject to track time of life of SessionItem....
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.