mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-10 16:19:23 +00:00
* 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:
+10
-4
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user