git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@341 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-11 01:01:39 +00:00
parent f664e1ce0c
commit ab69ae3fe6
5 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ void
Download::set_download(torrent::Download d) { Download::set_download(torrent::Download d) {
m_download = d; m_download = d;
m_connTrackerSucceded = m_download.signal_tracker_succeded(sigc::hide(sigc::bind(sigc::mem_fun(*this, &Download::receive_tracker_msg), ""))); m_connTrackerSucceded = m_download.signal_tracker_succeded(sigc::bind(sigc::mem_fun(*this, &Download::receive_tracker_msg), ""));
m_connTrackerFailed = m_download.signal_tracker_failed(sigc::mem_fun(*this, &Download::receive_tracker_msg)); m_connTrackerFailed = m_download.signal_tracker_failed(sigc::mem_fun(*this, &Download::receive_tracker_msg));
} }
+1 -1
View File
@@ -141,7 +141,7 @@ Manager::create_final(std::istream* s) {
m_downloadStore.save(*itr); m_downloadStore.save(*itr);
if (m_debugTracker >= 0) if (m_debugTracker >= 0)
(*itr)->get_download().signal_tracker_succeded(sigc::mem_fun(*this, &Manager::receive_debug_tracker)); (*itr)->get_download().signal_tracker_dump(sigc::mem_fun(*this, &Manager::receive_debug_tracker));
return itr; return itr;
} }
+2 -2
View File
@@ -22,10 +22,10 @@ print_download_status(core::Download* d) {
str << "Inactive"; str << "Inactive";
} else if (!d->get_tracker_msg().empty()) { } else if (!d->get_tracker_msg().empty()) {
str << "Tracker: " << d->get_tracker_msg(); str << "Tracker: [" << d->get_tracker_msg() << ']';
} else { } else {
str << "---"; //str << "---";
} }
return str.str(); return str.str();
+2 -1
View File
@@ -43,8 +43,9 @@ WindowTrackerList::redraw() {
while (range.first != range.second) { while (range.first != range.second) {
torrent::Tracker t = m_download->get_download().get_tracker(range.first); torrent::Tracker t = m_download->get_download().get_tracker(range.first);
m_canvas->print(0, pos, "%c %s", m_canvas->print(0, pos, "%c %2i %s",
range.first == *m_focus ? '*' : ' ', range.first == *m_focus ? '*' : ' ',
t.get_group(),
t.get_url().c_str()); t.get_url().c_str());
++range.first; ++range.first;
+4
View File
@@ -4,6 +4,7 @@
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <stdlib.h>
#include <torrent/http.h> #include <torrent/http.h>
#include <torrent/torrent.h> #include <torrent/torrent.h>
#include <sigc++/bind.h> #include <sigc++/bind.h>
@@ -113,6 +114,9 @@ main(int argc, char** argv) {
utils::Timer::update(); utils::Timer::update();
srandom(utils::Timer::cache().usec());
srand48(utils::Timer::cache().usec());
try { try {
SignalHandler::set_handler(SIGINT, sigc::bind(sigc::mem_fun(uiRoot, &ui::Root::set_shutdown_received), true)); SignalHandler::set_handler(SIGINT, sigc::bind(sigc::mem_fun(uiRoot, &ui::Root::set_shutdown_received), true));