* Added slot map's for insert/erase, open/close, start/stop and

finished downloads in DownloadList, moved stuff from core::Manager to
the slot maps.

* Added check hash key ^r, though triggering check hash on finished
signals currently borks.

* Made tracker dump into an option.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@470 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-20 19:14:41 +00:00
parent 9a3d75490f
commit 7e77635353
16 changed files with 243 additions and 151 deletions
+12
View File
@@ -29,6 +29,8 @@
#include "ui/control.h"
#include "option_handler_rules.h"
void receive_dump_tracker(std::istream* s);
bool
validate_ip(const std::string& arg) {
struct in_addr addr;
@@ -49,6 +51,11 @@ validate_port_range(const std::string& arg) {
a <= b && a > 0 && b < (1 << 16);
}
bool
validate_yes_no(const std::string& arg) {
return arg == "yes" || arg == "no";
}
bool
validate_download_peers(int arg) {
return arg > 0 && arg < (1 << 16);
@@ -91,6 +98,11 @@ apply_download_directory(core::Download* d, const std::string& arg) {
(d->get_download().get_entry_size() > 1 ? d->get_download().get_name() : ""));
}
void
apply_download_dump_tracker(core::Download* d, const std::string& arg) {
d->get_download().signal_tracker_dump(sigc::ptr_fun(&receive_dump_tracker));
}
void
apply_global_download_rate(ui::Control* m, int arg) {
torrent::set_read_throttle(arg * 1024);