* 'I' key set the download to ignore the start/stop_try commands.

* Added options for timeout_sync/safe_sync and max_chunks_queued.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@739 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-07 22:19:20 +00:00
parent 63311270c9
commit 52bf80d704
8 changed files with 102 additions and 81 deletions
+8 -7
View File
@@ -210,7 +210,7 @@ DownloadList::receive_stop_download() {
return;
if ((*m_view->focus())->variable()->get_value("state") == 1)
m_control->core()->download_list()->stop(*m_view->focus());
m_control->core()->download_list()->stop_normal(*m_view->focus());
else
m_control->core()->download_list()->erase(*m_view->focus());
@@ -222,6 +222,7 @@ DownloadList::receive_close_download() {
if (m_view->focus() == m_view->end_visible())
return;
m_control->core()->download_list()->stop_normal(*m_view->focus());
m_control->core()->download_list()->close(*m_view->focus());
m_view->set_last_changed();
}
@@ -287,12 +288,12 @@ DownloadList::receive_ignore_ratio() {
if (m_view->focus() == m_view->end_visible())
return;
if ((*m_view->focus())->variable()->get_value("ignore_ratio") > 0) {
(*m_view->focus())->variable()->set("ignore_ratio", (int64_t)0);
m_control->core()->push_log("Torrent set to stop when reaching upload ratio.");
if ((*m_view->focus())->variable()->get_value("ignore_commands") != 0) {
(*m_view->focus())->variable()->set("ignore_commands", (int64_t)0);
m_control->core()->push_log("Torrent set to heed commands.");
} else {
(*m_view->focus())->variable()->set("ignore_ratio", (int64_t)1);
m_control->core()->push_log("Torrent set to no longer stop when reaching upload ratio.");
(*m_view->focus())->variable()->set("ignore_commands", (int64_t)1);
m_control->core()->push_log("Torrent set to ignore commands");
}
}
@@ -356,7 +357,7 @@ DownloadList::receive_exit_input(Input type) {
case INPUT_CHANGE_DIRECTORY:
if (m_view->focus() == m_view->end_visible())
throw torrent::input_error("No download in focus to change root directory.");
throw torrent::input_error("No download in focus to change root directory.");
(*m_view->focus())->variable()->set("directory", rak::trim(m_windowTextInput->get_input()->str()));
m_control->core()->push_log("New root dir \"" + (*m_view->focus())->variable()->get_string("directory") + "\" for torrent.");