SHA256
1
0
forked from pool/ktorrent
OBS User unknown 2007-01-15 23:20:52 +00:00 committed by Git OBS Bridge
commit da832c0cce
15 changed files with 705 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

107
disable-DHT.diff Normal file
View File

@ -0,0 +1,107 @@
--- apps/ktorrent/ktorrent.cpp
+++ apps/ktorrent/ktorrent.cpp 2006/05/23 15:57:30
@@ -320,6 +320,7 @@
//update QM
m_core->getQueueManager()->orderQueue();
+#if 0
dht::DHTBase & ht = Globals::instance().getDHT();
if (Settings::dhtSupport() && !ht.isRunning())
{
@@ -335,6 +336,7 @@
ht.stop();
ht.start(KGlobal::dirs()->saveLocation("data","ktorrent") + "dht_table",Settings::dhtPort());
}
+#endif
if (Settings::useEncryption())
{
--- apps/ktorrent/ktorrent.kcfg
+++ apps/ktorrent/ktorrent.kcfg 2006/05/23 15:31:53
@@ -79,16 +79,6 @@
<label>GUI update interval</label>
<default>0</default>
</entry>
- <entry name="dhtSupport" type="Bool">
- <label>Support for DHT</label>
- <default>false</default>
- </entry>
- <entry name="dhtPort" type="Int">
- <label>DHT port</label>
- <default>6881</default>
- <min>0</min>
- <max>65535</max>
- </entry>
<entry name="numUploadSlots" type="Int">
<label>Number of upload slots</label>
<default>4</default>
--- apps/ktorrent/pref.cpp
+++ apps/ktorrent/pref.cpp 2006/05/23 15:59:53
@@ -153,12 +153,14 @@
Settings::setKeepSeeding(dp->keep_seeding->isChecked());
Settings::setPort(dp->port->value());
Settings::setNumUploadSlots(dp->num_upload_slots->value());
+#if 0
if (Settings::dhtSupport() && dp->udp_tracker_port->value() == Settings::dhtPort())
{
QString msg = i18n("The DHT port needs to be different then the UDP tracker port !");
KMessageBox::error(0,msg,i18n("Error"));
return false;
}
+#endif
Settings::setUdpTrackerPort(dp->udp_tracker_port->value());
return true;
}
@@ -202,8 +204,10 @@
this,SLOT(autosaveChecked(bool )));
connect(gp->custom_ip_check,SIGNAL(toggled(bool)),
this,SLOT(customIPChecked(bool )));
+#if 0
connect(gp->use_dht,SIGNAL(toggled(bool)),
this,SLOT(dhtChecked( bool )));
+#endif
connect(gp->use_encryption,SIGNAL(toggled(bool)),
this,SLOT(useEncryptionChecked( bool )));
}
@@ -245,7 +249,8 @@
Settings::setMemoryUsage(gp->mem_usage->currentItem());
Settings::setGuiUpdateInterval(gp->gui_interval->currentItem());
-
+
+#if 0
if (gp->use_dht->isChecked() && gp->dht_port->value() == Settings::udpTrackerPort())
{
QString msg = i18n("The DHT port needs to be different then the UDP tracker port !");
@@ -255,6 +260,7 @@
Settings::setDhtSupport(gp->use_dht->isChecked());
Settings::setDhtPort(gp->dht_port->value());
+#endif
Settings::setUseEncryption(gp->use_encryption->isChecked());
Settings::setAllowUnencryptedConnections(gp->allow_unencrypted->isChecked());
return true;
@@ -278,7 +284,9 @@
void PrefPageTwo::dhtChecked(bool on)
{
+#if 0
gp->dht_port->setEnabled(on);
+#endif
}
void PrefPageTwo::updateData()
@@ -318,11 +326,11 @@
gp->mem_usage->setCurrentItem(Settings::memoryUsage());
gp->gui_interval->setCurrentItem(Settings::guiUpdateInterval());
-
+#if 0
gp->use_dht->setChecked(Settings::dhtSupport());
gp->dht_port->setValue(Settings::dhtPort());
gp->dht_port->setEnabled(Settings::dhtSupport());
-
+#endif
gp->use_encryption->setChecked(Settings::useEncryption());
gp->allow_unencrypted->setChecked(Settings::allowUnencryptedConnections());
gp->allow_unencrypted->setEnabled(Settings::useEncryption());

3
ktorrent-2.0.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5bf5204d408ecbb5a0cf0e74230e2ea0eb0500f0b52828481399c560909155fc
size 2736562

44
ktorrent-fix-columns.diff Normal file
View File

@ -0,0 +1,44 @@
2005-12-15 Danny Kukawka <danny.kukawka@web.de>
* plugins/infowidget/infowidgetbase.ui,
plugins/infowidget/peerview.cppi,
plugins/infowidget/chunkdownloadview.cpp: Added focus to
all collums in the ListView objects.
Index: plugins/infowidget/infowidgetbase.ui
===================================================================
--- plugins/infowidget/infowidgetbase.ui (Revision 483953)
+++ plugins/infowidget/infowidgetbase.ui (Arbeitskopie)
@@ -692,6 +692,9 @@
<height>32767</height>
</size>
</property>
+ <property name="allColumnsShowFocus">
+ <bool>true</bool>
+ </property>
</widget>
</hbox>
</widget>
Index: plugins/infowidget/peerview.cpp
===================================================================
--- plugins/infowidget/peerview.cpp (Revision 483953)
+++ plugins/infowidget/peerview.cpp (Arbeitskopie)
@@ -89,6 +89,7 @@
addColumn(i18n("Snubbed"));
addColumn(i18n("Availability"));
setShowSortIndicator(true);
+ setAllColumnsShowFocus(true);
menu = new KPopupMenu(this);
ban_id = menu->insertItem(KGlobal::iconLoader()->loadIcon("filter",KIcon::NoGroup), i18n("to ban", "Ban Peer"));
Index: plugins/infowidget/chunkdownloadview.cpp
--- plugins/infowidget/chunkdownloadview.cpp 2006/07/19 07:24:13 1.1
+++ plugins/infowidget/chunkdownloadview.cpp 2006/07/19 07:26:46
@@ -73,6 +73,7 @@
: ChunkDownloadViewBase(parent, name)
{
m_list_view->setShowSortIndicator(true);
+ m_list_view->setAllColumnsShowFocus(true);
}

View File

@ -0,0 +1,23 @@
--- apps/ktorrent/ktorrent.cpp
+++ apps/ktorrent/ktorrent.cpp 2006/05/20 11:14:20
@@ -248,6 +248,7 @@
delete m_statusInfo;
delete m_statusTransfer;
delete m_statusSpeed;
+ delete m_view;
}
void KTorrent::addTabPage(QWidget* page,const QIconSet & icon,const QString & caption)
--- apps/ktorrent/ktorrentview.cpp
+++ apps/ktorrent/ktorrentview.cpp 2006/05/20 11:15:07
@@ -93,8 +93,10 @@
setShowSortIndicator(true);
setAcceptDrops(true);
setSelectionMode(QListView::Extended);
+ setResizeMode(QListView::NoColumn);
for (Uint32 i = 2;i < (Uint32)columns();i++)
setColumnWidthMode(i,QListView::Manual);
+ setAllColumnsShowFocus(true);
restoreLayout(KGlobal::config(),m_seedView ? "KTorrentSeedView" : "KTorrentView");
}

View File

@ -0,0 +1,27 @@
Index: libktorrent/util/mmapfile.cpp
===================================================================
--- libktorrent/util/mmapfile.cpp (Revision 494561)
+++ libktorrent/util/mmapfile.cpp (Arbeitskopie)
@@ -164,6 +164,7 @@
void MMapFile::growFile(Uint64 new_size)
{
+ Uint32 written;
Out() << "Growing file to " << new_size << " bytes " << endl;
Uint64 to_write = new_size - file_size;
// jump to the end of the file
@@ -176,12 +177,12 @@
{
if (to_write < 1024)
{
- ::write(fd,buf,to_write);
+ written = ::write(fd,buf,to_write);
to_write = 0;
}
else
{
- ::write(fd,buf,1024);
+ written = ::write(fd,buf,1024);
to_write -= 1024;
}
}

View File

@ -0,0 +1,18 @@
2005-12-15 Danny Kukawka <danny.kukawka@web.de>
* apps/ktorrent/ktorrentcore.cpp: fixed torrentFinished to
respect "Keep seeding after download has finished".
Index: apps/ktorrent/ktorrentcore.cpp
===================================================================
--- apps/ktorrent/ktorrentcore.cpp (Revision 489023)
+++ apps/ktorrent/ktorrentcore.cpp (Arbeitskopie)
@@ -306,7 +306,7 @@
void KTorrentCore::torrentFinished(kt::TorrentInterface* tc)
{
- if (!keep_seeding)
+ if (!Settings::keepSeeding())
tc->stop(false);
finished(tc);

View File

@ -0,0 +1,31 @@
2005-12-17 Danny Kukawka <danny.kukawka@web.de>
* apps/ktorrent/ktorrentcore.cpp/h: removed not needed
variables from header and frim constructor.
Index: apps/ktorrent/ktorrentcore.cpp
===================================================================
--- apps/ktorrent/ktorrentcore.cpp (Revision 489023)
+++ apps/ktorrent/ktorrentcore.cpp (Arbeitskopie)
@@ -50,7 +50,7 @@
using namespace kt;
-KTorrentCore::KTorrentCore(kt::GUIInterface* gui) : max_downloads(0),keep_seeding(true),pman(0)
+KTorrentCore::KTorrentCore(kt::GUIInterface* gui) : pman(0)
{
qman = new QueueManager();
data_dir = Settings::tempDir();
Index: apps/ktorrent/ktorrentcore.h
===================================================================
--- apps/ktorrent/ktorrentcore.h (Revision 489023)
+++ apps/ktorrent/ktorrentcore.h (Arbeitskopie)
@@ -249,8 +249,6 @@
private:
// QPtrList<kt::TorrentInterface> downloads;
QString data_dir;
- int max_downloads;
- bool keep_seeding;
QTimer update_timer;
bt::Uint64 removed_bytes_up,removed_bytes_down;
kt::PluginManager* pman;

View File

@ -0,0 +1,9 @@
--- configure.in.in
+++ configure.in.in
@@ -1,6 +1,5 @@
#MIN_CONFIG(3.3)
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS $USE_EXCEPTIONS $USE_RTTI"
-LDFLAGS="$LDFLAGS -Wl -z now"
AM_INIT_AUTOMAKE(ktorrent,2.0.3)

160
ktorrent.changes Normal file
View File

@ -0,0 +1,160 @@
-------------------------------------------------------------------
Tue Oct 17 11:58:08 CEST 2006 - dmueller@suse.de
- remove geoIP database due to license issues (#188562)
-------------------------------------------------------------------
Mon Oct 16 12:09:07 CEST 2006 - dmueller@suse.de
- fix build on PPC
-------------------------------------------------------------------
Tue Oct 10 21:13:45 CEST 2006 - stbinner@suse.de
- update to version 2.0.3
- fixes some download speed issues
- fixes several other minor bugs
-------------------------------------------------------------------
Wed Aug 30 19:17:19 CEST 2006 - stbinner@suse.de
- update to version 2.0.2
- fixes a data corruption bug
- should get the downloading working properly again
-------------------------------------------------------------------
Mon Aug 21 22:02:10 CEST 2006 - stbinner@suse.de
- update to version 2.0.1
- fixes several bugs
- features some performance improvements
-------------------------------------------------------------------
Wed Aug 9 02:48:29 CEST 2006 - stbinner@suse.de
- update to version 2.0 (no changelog provided)
- bugfixes
- translation updates
-------------------------------------------------------------------
Wed Jul 19 09:27:59 CEST 2006 - stbinner@suse.de
- update to version 2.0rc1
* bugfixes and polishing
-------------------------------------------------------------------
Tue Jun 6 13:30:26 CEST 2006 - stbinner@suse.de
- don't install with kdelibs conflicting x-bittorrent.desktop
-------------------------------------------------------------------
Tue May 23 17:28:15 CEST 2006 - adrian@suse.de
- update to version 2.0beta1
* Speed improvements
* Protocol encryption
* Bandwith scheduling
* File prioritization for multifile torrents
* Directory scanner for torrent files
* Many bug fixes
- disable experimental DHT for now
-------------------------------------------------------------------
Sun Apr 16 22:01:49 CEST 2006 - dkukawka@suse.de
- updated/added upstream commited changes:
- ktorrent-fix-german-translation.diff: updated german
translation file
- ktorrent-fix-i18n-strings.diff: fixed typo in i18n string and
merged back to translations
-------------------------------------------------------------------
Tue Mar 7 02:28:18 CET 2006 - dkukawka@suse.de
- fixed some strings in german translation (related to bug #154683
and upstram changes)
-------------------------------------------------------------------
Thu Mar 2 14:10:17 CET 2006 - dkukawka@suse.de
- fixed german translation for the plugin settings
-------------------------------------------------------------------
Tue Feb 7 01:44:42 CET 2006 - ro@suse.de
- fix build for < 10.1
-------------------------------------------------------------------
Wed Feb 1 10:23:35 CET 2006 - stbinner@suse.de
- update to 1.2 final
-------------------------------------------------------------------
Wed Jan 25 21:33:27 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Jan 17 22:00:47 CET 2006 - stbinner@suse.de
- update to 1.2rc2
-------------------------------------------------------------------
Mon Jan 16 14:33:38 CET 2006 - dmueller@suse.de
- use -fstack-protector
-------------------------------------------------------------------
Thu Jan 5 16:13:04 CET 2006 - dkukawka@suse.de
- added patches:
- ktorrent-fix-columns.diff (Added focus to all collums in the
ListView objects)
- ktorrent-fix-columns_save_restore_ktorrentview.diff (fix store
columns settings and enable change wide of columns)
- ktorrent-fix-KBytesPerSecToString.diff
- ktorrent-fix-keep_seeding.diff (fixed torrentFinished to
respect "Keep seeding after download has finished")
- ktorrent-fix-remove-unneeded.diff (removed unneeded code)
- ktorrent-fix-compiler_warning.diff
-------------------------------------------------------------------
Mon Jan 2 11:27:26 CET 2006 - stbinner@suse.de
- update to 1.2rc1 (#135481)
-------------------------------------------------------------------
Thu Oct 13 14:03:55 CEST 2005 - dmueller@suse.de
- update to BRANCH
-------------------------------------------------------------------
Tue Oct 11 15:37:11 CEST 2005 - dmueller@suse.de
- update 1.1 final
-------------------------------------------------------------------
Wed Sep 7 09:56:26 CEST 2005 - adrian@suse.de
- remove links to some search engine with maybe legal problems
-------------------------------------------------------------------
Tue Sep 6 11:39:25 CEST 2005 - dmueller@suse.de
- update 1.1rc1 (#104905)
-------------------------------------------------------------------
Fri Aug 5 14:14:18 CEST 2005 - adrian@suse.de
- fix build for released non-PLUS distributions
-------------------------------------------------------------------
Fri Jul 22 19:48:22 CEST 2005 - adrian@suse.de
- fix file list
-------------------------------------------------------------------
Fri Jul 22 14:00:06 CEST 2005 - adrian@suse.de
- create initial package of version 1.0

193
ktorrent.spec Normal file
View File

@ -0,0 +1,193 @@
#
# spec file for package ktorrent (Version 2.0.3)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ktorrent
BuildRequires: gmp-devel kdelibs3-devel
URL: http://ktorrent.pwsp.net/
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: Productivity/Networking/Other
Summary: KDE BitTorrent Client
Version: 2.0.3
Release: 7
%define rversion 2.0.3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{rversion}.tar.gz
Patch2: remove-links.diff
Patch3: ktorrent-lazy-binding.diff
Patch4: no-geoip-db.diff
Patch10: ktorrent-fix-columns.diff
Patch11: ktorrent-fix-columns_save_restore_ktorrentview.diff
Patch13: ktorrent-fix-keep_seeding.diff
Patch14: ktorrent-fix-remove-unneeded.diff
Patch15: ktorrent-fix-compiler_warning.diff
Patch16: disable-DHT.diff
%description
Torrent is a BitTorrent program for KDE. Its main features are: *
Download of torrent files
* Upload speed capping, seeing that most people cannot upload
infinite amounts of data
* Internet searching using the BitTorrent Web site's search engine
* UDP trackers
Authors:
--------
Jois Guisson <jrois.guisson@gmail.com>
%prep
%setup -q -n %{name}-%{rversion}
%patch2
%patch3
%patch4
%patch10
%patch11
%patch13
%patch14
%patch15
%patch16
. /etc/opt/kde3/common_options
update_admin
%build
%if %suse_version > 1000
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif
. /etc/opt/kde3/common_options
./configure $configkde
do_make %{?jobs:-j %jobs}
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/opt/kde3/share/applnk/Internet/ktorrent.desktop
%suse_update_desktop_file %name Network FileTransfer
%find_lang %name
%pre
%run_ldconfig
%post
%run_ldconfig
%files -f %name.lang
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/16x16
%dir /opt/kde3/share/icons/hicolor/32x32
%dir /opt/kde3/share/icons/hicolor/128x128
%dir /opt/kde3/share/icons/hicolor/128x128/apps
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32/apps
%dir /opt/kde3/share/icons/hicolor/48x48
%dir /opt/kde3/share/icons/hicolor/48x48/apps
%dir /opt/kde3/share/icons/hicolor/64x64
%dir /opt/kde3/share/icons/hicolor/64x64/apps
%dir /opt/kde3/share/icons/hicolor/scalable
%dir /opt/kde3/share/icons/hicolor/scalable/apps
/opt/kde3/bin/*
/opt/kde3/share/config.kcfg/ktorrent.kcfg
/opt/kde3/share/icons/*/*/*/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/*
/opt/kde3/%_lib/kde3/*
/opt/kde3/%_lib/libktorrent.*
/opt/kde3/share/config.kcfg/*.kcfg
/opt/kde3/share/services/*.desktop
/opt/kde3/share/servicetypes/*.desktop
%changelog -n ktorrent
* Tue Oct 17 2006 - dmueller@suse.de
- remove geoIP database due to license issues (#188562)
* Mon Oct 16 2006 - dmueller@suse.de
- fix build on PPC
* Tue Oct 10 2006 - stbinner@suse.de
- update to version 2.0.3
- fixes some download speed issues
- fixes several other minor bugs
* Wed Aug 30 2006 - stbinner@suse.de
- update to version 2.0.2
- fixes a data corruption bug
- should get the downloading working properly again
* Mon Aug 21 2006 - stbinner@suse.de
- update to version 2.0.1
- fixes several bugs
- features some performance improvements
* Wed Aug 09 2006 - stbinner@suse.de
- update to version 2.0 (no changelog provided)
- bugfixes
- translation updates
* Wed Jul 19 2006 - stbinner@suse.de
- update to version 2.0rc1
* bugfixes and polishing
* Tue Jun 06 2006 - stbinner@suse.de
- don't install with kdelibs conflicting x-bittorrent.desktop
* Tue May 23 2006 - adrian@suse.de
- update to version 2.0beta1
* Speed improvements
* Protocol encryption
* Bandwith scheduling
* File prioritization for multifile torrents
* Directory scanner for torrent files
* Many bug fixes
- disable experimental DHT for now
* Sun Apr 16 2006 - dkukawka@suse.de
- updated/added upstream commited changes:
- ktorrent-fix-german-translation.diff: updated german
translation file
- ktorrent-fix-i18n-strings.diff: fixed typo in i18n string and
merged back to translations
* Tue Mar 07 2006 - dkukawka@suse.de
- fixed some strings in german translation (related to bug #154683
and upstram changes)
* Thu Mar 02 2006 - dkukawka@suse.de
- fixed german translation for the plugin settings
* Tue Feb 07 2006 - ro@suse.de
- fix build for < 10.1
* Wed Feb 01 2006 - stbinner@suse.de
- update to 1.2 final
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 - stbinner@suse.de
- update to 1.2rc2
* Mon Jan 16 2006 - dmueller@suse.de
- use -fstack-protector
* Thu Jan 05 2006 - dkukawka@suse.de
- added patches:
- ktorrent-fix-columns.diff (Added focus to all collums in the
ListView objects)
- ktorrent-fix-columns_save_restore_ktorrentview.diff (fix store
columns settings and enable change wide of columns)
- ktorrent-fix-KBytesPerSecToString.diff
- ktorrent-fix-keep_seeding.diff (fixed torrentFinished to
respect "Keep seeding after download has finished")
- ktorrent-fix-remove-unneeded.diff (removed unneeded code)
- ktorrent-fix-compiler_warning.diff
* Mon Jan 02 2006 - stbinner@suse.de
- update to 1.2rc1 (#135481)
* Thu Oct 13 2005 - dmueller@suse.de
- update to BRANCH
* Tue Oct 11 2005 - dmueller@suse.de
- update 1.1 final
* Wed Sep 07 2005 - adrian@suse.de
- remove links to some search engine with maybe legal problems
* Tue Sep 06 2005 - dmueller@suse.de
- update 1.1rc1 (#104905)
* Fri Aug 05 2005 - adrian@suse.de
- fix build for released non-PLUS distributions
* Fri Jul 22 2005 - adrian@suse.de
- fix file list
* Fri Jul 22 2005 - adrian@suse.de
- create initial package of version 1.0

29
no-geoip-db.diff Normal file
View File

@ -0,0 +1,29 @@
--- plugins/infowidget/Makefile.am
+++ plugins/infowidget/Makefile.am
@@ -27,7 +27,3 @@
kde_services_DATA = ktinfowidgetplugin.desktop
kde_kcfg_DATA = ktinfowidgetplugin.kcfg
-
-ktdatadir = $(kde_datadir)/ktorrent/geoip
-
-SUBDIRS = geoip
--- plugins/infowidget/peerview.cpp
+++ plugins/infowidget/peerview.cpp
@@ -45,7 +45,7 @@
static QPixmap no_pix;
static QPixmap lock_pix;
static bool yes_no_pix_loaded = false;
- static bool geoip_db_exists = true;
+ static bool geoip_db_exists = false;
PeerViewItem::PeerViewItem(PeerView* pv,kt::PeerInterface* peer) : KListViewItem(pv),peer(peer)
@@ -56,7 +56,6 @@
yes_pix = iload->loadIcon("button_ok",KIcon::Small);
no_pix = iload->loadIcon("button_cancel",KIcon::Small);
lock_pix = iload->loadIcon("ktencrypted",KIcon::Small);
- geoip_db_exists = !locate("data", "ktorrent/geoip/geoip.dat").isNull();
yes_no_pix_loaded = true;
}

0
ready Normal file
View File

37
remove-links.diff Normal file
View File

@ -0,0 +1,37 @@
--- plugins/search/searchprefpage.cpp
+++ plugins/search/searchprefpage.cpp 2006/05/20 11:12:23
@@ -158,7 +158,7 @@
se = new QListViewItem(m_engines, "bittorrent.com", "http://search.bittorrent.com/search.jsp?query=FOOBAR");
m_items.append(se);
m_engines->insertItem(se);
-
+#if 0
se = new QListViewItem(m_engines, "isohunt.com", "http://isohunt.com/torrents.php?ihq=FOOBAR&op=and");
m_items.append(se);
m_engines->insertItem(se);
@@ -186,6 +186,7 @@
se = new QListViewItem(m_engines, "torrentz.com", "http://www.torrentz.com/search_FOOBAR");
m_items.append(se);
m_engines->insertItem(se);
+#endif
}
void SearchPrefPageWidget::removeAllClicked()
--- plugins/search/searchwidget.cpp
+++ plugins/search/searchwidget.cpp 2006/05/20 11:12:50
@@ -207,6 +207,7 @@
out << "# SEARCH ENGINES list" << ::endl;
out << "KTorrents http://www.ktorrents.com/search.php?lg=0&sourceid=ktorrent&q=FOOBAR&f=0" << ::endl;
out << "bittorrent.com http://www.bittorrent.com/search_result.myt?search=FOOBAR" << ::endl;
+#if 0
out << "isohunt.com http://isohunt.com/torrents.php?ihq=FOOBAR&op=and" << ::endl;
out << "mininova.org http://www.mininova.org/search.php?search=FOOBAR" << ::endl;
out << "thepiratebay.org http://thepiratebay.org/search.php?q=FOOBAR" << ::endl;
@@ -214,6 +215,7 @@
out << "bytenova.org http://www.bitenova.org/search.php?search=FOOBAR&start=0&start=0&ie=utf-8&oe=utf-8" << ::endl;
out << "torrentspy.com http://torrentspy.com/search.asp?query=FOOBAR" << ::endl;
out << "torrentz.com http://www.torrentz.com/search_FOOBAR" << ::endl;
+#endif
}