mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
* 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:
+5
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user