* Added the framework for a download scheduler.

* Added "state_changed" variable to downloads that returns the last
time the download called DownloadList::pause/resume.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@674 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-04-25 19:33:53 +00:00
parent 19179bd160
commit c5c9a1ddae
20 changed files with 339 additions and 45 deletions
+9 -1
View File
@@ -131,13 +131,21 @@ VariableObject::set(const torrent::Object& arg) {
break;
case torrent::Object::TYPE_STRING:
if (arg.type() == torrent::Object::TYPE_STRING)
if (arg.is_string())
root->insert_key(m_key, arg);
else
throw torrent::input_error("VariableObject could not convert to string.");
break;
case torrent::Object::TYPE_VALUE:
if (arg.is_value())
root->insert_key(m_key, arg);
else
throw torrent::input_error("VariableObject could not convert to value.");
break;
default:
throw torrent::input_error("VariableObject unsupported type restriction.");
}