[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/network/ktorrent
From: Joris Guisson <joris.guisson () gmail ! com>
Date: 2010-10-27 16:39:08
Message-ID: 20101027163908.6BD07AC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1190436 by guisson:
Fix compile error in ktmagnetdownloader
A RoadMap
M +8 -7 ktmagnetdownloader/magnettest.cpp
--- trunk/extragear/network/ktorrent/ktmagnetdownloader/magnettest.cpp #1190435:1190436
@@ -36,6 +36,7 @@
#include <QFile>
#include <bcodec/bencoder.h>
#include <peer/authenticationmonitor.h>
+#include <boost/concept_check.hpp>
using namespace kt;
using namespace bt;
@@ -136,18 +137,18 @@
{
BEncoder enc(&fptr);
enc.beginDict();
- QStringList trs = mlink.trackers();
+ KUrl::List trs = mlink.trackers();
if (trs.count())
{
enc.write("announce");
- enc.write(trs.first());
- if (trs.count()>1){
+ enc.write(trs.first().prettyUrl());
+ if (trs.count() > 1)
+ {
enc.write("announce-list");
enc.beginList();
- QList<QString>::const_iterator it = trs.begin();
- QList<QString>::const_iterator end = trs.end();
- for(;it!=end;it++){
- enc.write((*it));
+ foreach (const KUrl & u,trs)
+ {
+ enc.write(u.prettyUrl());
}
enc.end();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic