File indexing completed on 2025-02-16 04:37:33
0001 /* 0002 SPDX-FileCopyrightText: 2005 Joris Guisson <joris.guisson@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "request.h" 0007 #include <interfaces/piecedownloader.h> 0008 #if 0 0009 namespace bt 0010 { 0011 Request::Request() : index(0), off(0), len(0), pd(0) 0012 {} 0013 0014 Request::Request(Uint32 index, Uint32 off, Uint32 len, PieceDownloader* pd) 0015 : index(index), off(off), len(len), pd(pd) 0016 {} 0017 0018 Request::Request(const Request & r) 0019 : index(r.index), off(r.off), len(r.len), pd(r.pd) 0020 {} 0021 0022 Request::~Request() 0023 {} 0024 0025 0026 Request & Request::operator = (const Request & r) 0027 { 0028 index = r.index; 0029 off = r.off; 0030 len = r.len; 0031 pd = r.pd; 0032 return *this; 0033 } 0034 0035 } 0036 #endif