/* */ #include "Notifier.h" #include "RequestGroup.h" #include "LogFactory.h" namespace aria2 { Notifier::Notifier() {} Notifier::~Notifier() {} void Notifier::addDownloadEventListener(DownloadEventListener* listener) { listeners_.push_back(listener); } void Notifier::notifyDownloadEvent(DownloadEvent event, const RequestGroup* group) { for (auto listener : listeners_) { listener->onEvent(event, group); } } } // namespace aria2