MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / RemoveFileTransfer

Method RemoveFileTransfer

Plugins/FileTransfer/ListFileModel.cpp:358–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358int CListFileModel::RemoveFileTransfer(int id)
359{
360 int nRet = 0;
361 for(int i = 0; i < m_lstFile.size(); i++) {
362 auto p = m_lstFile.at(i);
363 if(p) {
364 if(p->GetId() == id) {
365 beginRemoveRows(QModelIndex(), i, i);
366 m_lstFile.removeAt(i);
367 endRemoveRows();
368 return 0;
369 }
370 }
371 }
372 return nRet;
373}
374
375int CListFileModel::RemoveFileTransfer(QList<int> ids)
376{

Callers

nothing calls this directly

Calls 3

GetIdMethod · 0.45
isEmptyMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected