* Added command scheduler, currently it only calls option handler.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@609 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-12-17 02:50:10 +00:00
parent ca5b5e05ec
commit e45f05ee98
17 changed files with 541 additions and 51 deletions
+10 -4
View File
@@ -58,6 +58,8 @@ namespace input {
class Manager;
}
class CommandScheduler;
class Control {
public:
Control();
@@ -66,16 +68,18 @@ public:
bool is_shutdown_completed() { return m_shutdownReceived && torrent::is_inactive(); }
bool is_shutdown_received() { return m_shutdownReceived; }
void initialize();
void cleanup();
void receive_shutdown();
ui::Root* ui() { return m_ui; }
core::Manager* core() { return m_core; }
display::Manager* display() { return m_display; }
input::Manager* input() { return m_input; }
input::InputEvent* input_stdin() { return m_inputStdin; }
void initialize();
void cleanup();
void receive_shutdown();
CommandScheduler* command_scheduler() { return m_commandScheduler; }
private:
Control(const Control&);
@@ -89,6 +93,8 @@ private:
input::Manager* m_input;
input::InputEvent* m_inputStdin;
CommandScheduler* m_commandScheduler;
rak::priority_item m_taskShutdown;
};