* 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
+5 -1
View File
@@ -42,6 +42,7 @@
#include "core/manager.h"
#include "core/view_manager.h"
#include "core/scheduler.h"
#include "display/canvas.h"
#include "display/client_info.h"
@@ -72,8 +73,9 @@ Control::Control() :
m_tick(0) {
m_core = new core::Manager();
m_core = new core::Manager();
m_viewManager = new core::ViewManager(&m_core->download_list());
m_scheduler = new core::Scheduler(&m_core->download_list());
m_inputStdin->slot_pressed(sigc::mem_fun(m_input, &input::Manager::pressed));
@@ -110,6 +112,8 @@ Control::initialize() {
m_core->listen_open();
m_core->download_store().enable(m_variables->get_value("session_lock"));
m_scheduler->set_view(*m_viewManager->find_throw("scheduler"));
m_ui->init(this);
m_inputStdin->insert(m_core->get_poll_manager()->get_torrent_poll());