Exemple #1
0
//---------------------------------------------------------------------------------------
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);
}
Exemple #2
0
//---------------------------------------------------------------------------------------
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);
}
Exemple #3
0
//---------------------------------------------------------------------------------------
void EventNotifier::add_handler(Observable* pSource, int eventType,
                                void (*pt2Func)(SpEventInfo event) )
{
    Observer* observer = add_observer_for(pSource);
    observer->add_handler(eventType, pt2Func);
}
Exemple #4
0
//---------------------------------------------------------------------------------------
void EventNotifier::add_handler(Observable* pSource, int eventType,
                                EventHandler* pHandler)
{
    Observer* observer = add_observer_for(pSource);
    observer->add_handler(eventType, pHandler);
}