Interface to notification macros
| 2615 | // Interface to notification macros |
| 2616 | // |
| 2617 | void ECNotifier::DownloadFile_SetDirty(const CPartFile *file) |
| 2618 | { |
| 2619 | for(std::map<CECServerSocket *, ECUpdateMsgSource **>::iterator i = m_msg_source.begin(); |
| 2620 | i != m_msg_source.end(); ++i) { |
| 2621 | CECServerSocket *sock = i->first; |
| 2622 | if ( sock->HaveNotificationSupport() ) { |
| 2623 | ECUpdateMsgSource **notifier_array = i->second; |
| 2624 | static_cast<ECPartFileMsgSource *>(notifier_array[EC_PARTFILE])->SetDirty(file); |
| 2625 | } |
| 2626 | } |
| 2627 | NextPacketToSocket(); |
| 2628 | } |
| 2629 | |
| 2630 | void ECNotifier::DownloadFile_RemoveFile(const CPartFile *file) |
| 2631 | { |
no test coverage detected