* Added dummy scheduler commands.

* Add/remove downloads from the 'active' view on resume/pause.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1051 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-04-11 18:03:27 +00:00
parent aab493caad
commit 41088740bd
4 changed files with 26 additions and 4 deletions
+4
View File
@@ -307,6 +307,8 @@ DownloadList::resume(Download* download, int flags) {
if (download->download()->is_active())
return;
rpc::parse_command_single(rpc::make_target(download), "view.set_visible=active");
// We need to make sure the flags aren't reset if someone decideds
// to call resume() while it is hashing, etc.
if (download->resume_flags() == ~uint32_t())
@@ -374,6 +376,8 @@ DownloadList::pause(Download* download, int flags) {
download->set_resume_flags(~uint32_t());
rpc::parse_command_single(rpc::make_target(download), "view.set_not_visible=active");
// Always clear hashing on pause. When a hashing request is added,
// it should have cleared the hash resume data.
if (rpc::call_command_value("d.get_hashing", rpc::make_target(download)) != Download::variable_hashing_stopped) {