File indexing completed on 2025-01-05 04:37:17

0001 /*
0002     SPDX-FileCopyrightText: 2008 Joris Guisson <joris.guisson@gmail.com>
0003     SPDX-FileCopyrightText: 2008 Ivan Vasic <ivasic@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 #include "chunkselectorinterface.h"
0008 #include <boost/concept_check.hpp>
0009 
0010 namespace bt
0011 {
0012 ChunkSelectorInterface::ChunkSelectorInterface()
0013     : cman(nullptr)
0014     , downer(nullptr)
0015     , pman(nullptr)
0016 {
0017 }
0018 
0019 ChunkSelectorInterface::~ChunkSelectorInterface()
0020 {
0021 }
0022 
0023 void ChunkSelectorInterface::init(bt::ChunkManager *cman, bt::Downloader *downer, bt::PeerManager *pman)
0024 {
0025     this->cman = cman;
0026     this->downer = downer;
0027     this->pman = pman;
0028 }
0029 
0030 bool ChunkSelectorInterface::selectRange(Uint32 &from, Uint32 &to, Uint32 max_len)
0031 {
0032     Q_UNUSED(from);
0033     Q_UNUSED(to);
0034     Q_UNUSED(max_len);
0035     return false;
0036 }
0037 
0038 }