| 492 | |
| 493 | |
| 494 | void DownloadCtrlAddFile(CPartFile* file) |
| 495 | { |
| 496 | // See DownloadCtrlUpdateItem above for the rationale; the |
| 497 | // notifier can be NULL during init or shutdown. |
| 498 | if (theApp->ECServerHandler && theApp->ECServerHandler->m_ec_notifier) { |
| 499 | theApp->ECServerHandler->m_ec_notifier->DownloadFile_AddFile(file); |
| 500 | } |
| 501 | #ifndef AMULE_DAEMON |
| 502 | if (theApp->amuledlg->m_transferwnd && theApp->amuledlg->m_transferwnd->downloadlistctrl ) { |
| 503 | theApp->amuledlg->m_transferwnd->downloadlistctrl->AddFile(file); |
| 504 | } |
| 505 | #endif |
| 506 | } |
| 507 | |
| 508 | void DownloadCtrlRemoveFile(CPartFile* file) |
| 509 | { |
nothing calls this directly
no test coverage detected