/* */ #include "Notifier.h" #include "RequestGroup.h" #include "LogFactory.h" namespace aria2 { Notifier::Notifier() {} Notifier::~Notifier() {} void Notifier::addDownloadEventListener (const std::shared_ptr& listener) { listeners_.push_back(listener); } void Notifier::notifyDownloadEvent (DownloadEvent event, const RequestGroup* group) { for(std::vector >::const_iterator i = listeners_.begin(), eoi = listeners_.end(); i != eoi; ++i) { (*i)->onEvent(event, group); } } } // namespace aria2