//--------------------------------------------------------------------------------------- void EventNotifier::add_handler_for_child(Observable* parent, int childType, ImoId childId, int eventType, void* pThis, void (*pt2Func)(void* pObj, SpEventInfo event) ) { Observer* observer = add_observer_for_child(parent, childType, childId); observer->add_handler(eventType, pThis, pt2Func); }
//--------------------------------------------------------------------------------------- void EventNotifier::add_handler_for_child(Observable* parent, int childType, ImoId childId, int eventType, EventHandler* pHandler) { Observer* observer = add_observer_for_child(parent, childType, childId); observer->add_handler(eventType, pHandler); }
//--------------------------------------------------------------------------------------- void EventNotifier::add_handler(Observable* pSource, int eventType, void (*pt2Func)(SpEventInfo event) ) { Observer* observer = add_observer_for(pSource); observer->add_handler(eventType, pt2Func); }
//--------------------------------------------------------------------------------------- void EventNotifier::add_handler(Observable* pSource, int eventType, EventHandler* pHandler) { Observer* observer = add_observer_for(pSource); observer->add_handler(eventType, pHandler); }