Lines Matching defs:event_sp
184 Listener::AddEvent (EventSP &event_sp)
188 log->Printf ("%p Listener('%s')::AddEvent (event_sp = {%p})", this, m_name.c_str(), event_sp.get());
193 m_events.push_back (event_sp);
205 bool operator() (const EventSP &event_sp) const
207 if (event_sp->BroadcasterIs(m_broadcaster))
229 bool operator() (const EventSP &event_sp) const
231 if (m_broadcaster && !event_sp->BroadcasterIs(m_broadcaster))
237 const ConstString &event_broadcaster_name = event_sp->GetBroadcaster()->GetBroadcasterName();
250 if (m_event_type_mask == 0 || m_event_type_mask & event_sp->GetType())
270 EventSP &event_sp,
294 event_sp = *pos;
305 event_sp.get());
322 event_sp->DoOnRemoval();
327 event_sp.reset();
334 EventSP event_sp;
335 if (FindNextEventInternal (NULL, NULL, 0, 0, event_sp, false))
336 return event_sp.get();
343 EventSP event_sp;
344 if (FindNextEventInternal (broadcaster, NULL, 0, 0, event_sp, false))
345 return event_sp.get();
352 EventSP event_sp;
353 if (FindNextEventInternal (broadcaster, NULL, 0, event_type_mask, event_sp, false))
354 return event_sp.get();
366 EventSP &event_sp
369 return FindNextEventInternal (broadcaster, broadcaster_names, num_broadcaster_names, event_type_mask, event_sp, true);
373 Listener::GetNextEvent (EventSP &event_sp)
375 return GetNextEventInternal (NULL, NULL, 0, 0, event_sp);
380 Listener::GetNextEventForBroadcaster (Broadcaster *broadcaster, EventSP &event_sp)
382 return GetNextEventInternal (broadcaster, NULL, 0, 0, event_sp);
386 Listener::GetNextEventForBroadcasterWithType (Broadcaster *broadcaster, uint32_t event_type_mask, EventSP &event_sp)
388 return GetNextEventInternal (broadcaster, NULL, 0, event_type_mask, event_sp);
400 EventSP &event_sp
416 if (GetNextEventInternal (broadcaster, broadcaster_names, num_broadcaster_names, event_type_mask, event_sp))
427 if (FindNextEventInternal (broadcaster, broadcaster_names, num_broadcaster_names, event_type_mask, event_sp, remove))
461 EventSP &event_sp
464 return WaitForEventsInternal (timeout, broadcaster, NULL, 0, event_type_mask, event_sp);
472 EventSP &event_sp
475 return WaitForEventsInternal (timeout, broadcaster, NULL, 0, 0, event_sp);
479 Listener::WaitForEvent (const TimeValue *timeout, EventSP &event_sp)
481 return WaitForEventsInternal (timeout, NULL, NULL, 0, 0, event_sp);
508 Listener::HandleBroadcastEvent (EventSP &event_sp)
512 Broadcaster *broadcaster = event_sp->GetBroadcaster();
520 if (event_sp->GetType () & info.event_mask)
524 info.callback (event_sp, info.callback_user_data);