| 41 | } |
| 42 | |
| 43 | void EventDispatcher::dispatchEvent(const Event& event, int timeoutSeconds) |
| 44 | { |
| 45 | for (list<pair<EventType, EventObserver*> >::iterator i = observerList_.begin(); i != observerList_.end(); i++) |
| 46 | { |
| 47 | if (i->first == event.type) |
| 48 | i->second->notify(event, timeoutSeconds); |
| 49 | } |
| 50 | } |