foreach (PieceDownloader* pd,pdown) { pd->release(); sendCancels(pd); disconnect(pd,SIGNAL(timedout(bt::Request)),this,SLOT(onTimeout(bt::Request))); disconnect(pd,SIGNAL(rejected(bt::Request)),this,SLOT(onRejected(bt::Request))); }
void ChunkDownload::cancelAll() { QPtrList<PeerDownloader>::iterator i = pdown.begin(); while (i != pdown.end()) { sendCancels(*i); i++; } }