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

0001 /*
0002     SPDX-FileCopyrightText: 2005 Joris Guisson <joris.guisson@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #include "trackerslist.h"
0007 #include <torrent/torrent.h>
0008 
0009 namespace bt
0010 {
0011 TrackersList::TrackersList()
0012 {
0013 }
0014 
0015 TrackersList::~TrackersList()
0016 {
0017 }
0018 
0019 void TrackersList::merge(const bt::TrackerTier *first)
0020 {
0021     int tier = 1;
0022     while (first) {
0023         QList<QUrl>::const_iterator i = first->urls.begin();
0024         while (i != first->urls.end()) {
0025             addTracker(*i, true, tier);
0026             ++i;
0027         }
0028         tier++;
0029         first = first->next;
0030     }
0031 }
0032 
0033 }