Lines Matching refs:aEvent

587     HRESULT process(IEvent *aEvent, BOOL aWaitable, PendingEventsMap::iterator &pit, AutoLockBase &alock);
588 HRESULT enqueue(IEvent *aEvent);
589 HRESULT dequeue(IEvent **aEvent, LONG aTimeout, AutoLockBase &aAlock);
590 HRESULT eventProcessed(IEvent *aEvent, PendingEventsMap::iterator &pit);
769 ComPtr<IEvent> aEvent;
774 mQueue.front().queryInterfaceTo(aEvent.asOutParam());
778 aEvent->COMGETTER(Waitable)(&aWaitable);
781 PendingEventsMap::iterator pit = aPem->find(aEvent);
783 eventProcessed(aEvent, pit);
792 HRESULT ListenerRecord::process(IEvent *aEvent,
806 rc = mListener->HandleEvent(aEvent);
813 eventProcessed(aEvent, pit);
816 return enqueue(aEvent);
820 HRESULT ListenerRecord::enqueue(IEvent *aEvent)
838 if (queueSize != 0 && mQueue.back() == aEvent)
841 (void)aEvent;
843 mQueue.push_back(aEvent);
853 HRESULT ListenerRecord::dequeue(IEvent **aEvent,
873 *aEvent = NULL;
890 *aEvent = NULL;
894 mQueue.front().queryInterfaceTo(aEvent);
901 HRESULT ListenerRecord::eventProcessed(IEvent *aEvent, PendingEventsMap::iterator &pit)
905 Assert(pit->first == aEvent);
906 aEvent->SetProcessed();
1058 HRESULT EventSource::fireEvent(const ComPtr<IEvent> &aEvent,
1065 aEvent->COMGETTER(Waitable)(&aWaitable);
1075 hrc = aEvent->COMGETTER(Type)(&evType);
1084 aEvent->SetProcessed();
1092 m->mPendingMap.insert(PendingEventsMap::value_type(aEvent, cListeners));
1095 pit = m->mPendingMap.find(aEvent);
1110 cbRc = record.obj()->process(aEvent, aWaitable, pit, alock);
1131 hrc = aEvent->WaitProcessed(aTimeout, aResult);
1140 ComPtr<IEvent> &aEvent)
1152 rc = it->second.obj()->dequeue(aEvent.asOutParam(), aTimeout, alock);
1164 const ComPtr<IEvent> &aEvent)
1176 aEvent->COMGETTER(Waitable)(&aWaitable);
1188 PendingEventsMap::iterator pit = m->mPendingMap.find(aEvent);
1197 rc = aRecord->eventProcessed(aEvent, pit);
1297 STDMETHOD(HandleEvent)(IEvent *aEvent)
1301 return mSource->FireEvent(aEvent, 0, &fProcessed);
1359 STDMETHOD(FireEvent)(IEvent *aEvent,
1364 IEvent **aEvent);
1366 IEvent *aEvent);
1514 STDMETHODIMP EventSourceAggregator::FireEvent(IEvent *aEvent,
1518 CheckComArgNotNull(aEvent);
1533 rc = es->FireEvent(aEvent, aTimeout, aProcessed);
1544 IEvent **aEvent)
1546 return mSource->GetEvent(aListener, aTimeout, aEvent);
1550 IEvent *aEvent)
1552 return mSource->EventProcessed(aListener, aEvent);