mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
Added logging, currently shows failed torrent creations but does not
time out the log messages. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@307 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "display/window_download_list.h"
|
||||
#include "display/window_http_queue.h"
|
||||
#include "display/window_input.h"
|
||||
#include "display/window_log.h"
|
||||
#include "display/window_statusbar.h"
|
||||
#include "display/window_title.h"
|
||||
|
||||
@@ -33,11 +34,11 @@ DownloadList::DownloadList(Control* c) :
|
||||
m_bindings(new input::Bindings) {
|
||||
|
||||
m_window = new WList(&m_control->get_core().get_download_list(), &m_focus);
|
||||
m_windowLog = new WLog(&m_control->get_core().get_log());
|
||||
|
||||
bind_keys(m_bindings);
|
||||
|
||||
m_textInput->get_input()->slot_dirty(sigc::mem_fun(*m_textInput, &WInput::mark_dirty));
|
||||
m_windowHttpQueue->slot_adjust(sigc::mem_fun(c->get_display(), &display::Manager::adjust_layout));
|
||||
}
|
||||
|
||||
DownloadList::~DownloadList() {
|
||||
@@ -46,6 +47,7 @@ DownloadList::~DownloadList() {
|
||||
delete m_status;
|
||||
delete m_bindings;
|
||||
|
||||
delete m_windowLog;
|
||||
delete m_textInput->get_input();
|
||||
delete m_textInput;
|
||||
delete m_windowHttpQueue;
|
||||
@@ -57,6 +59,7 @@ DownloadList::activate() {
|
||||
|
||||
m_control->get_input().push_front(m_bindings);
|
||||
|
||||
m_control->get_display().push_back(m_windowLog);
|
||||
m_control->get_display().push_back(m_windowHttpQueue);
|
||||
m_control->get_display().push_back(m_textInput);
|
||||
m_control->get_display().push_back(m_status);
|
||||
@@ -77,6 +80,7 @@ DownloadList::disable() {
|
||||
m_control->get_display().erase(m_window);
|
||||
m_control->get_display().erase(m_status);
|
||||
m_control->get_display().erase(m_textInput);
|
||||
m_control->get_display().erase(m_windowLog);
|
||||
m_control->get_display().erase(m_windowHttpQueue);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace display {
|
||||
class WindowDownloadList;
|
||||
class WindowHttpQueue;
|
||||
class WindowInput;
|
||||
class WindowLog;
|
||||
class WindowStatusbar;
|
||||
class WindowTitle;
|
||||
}
|
||||
@@ -21,6 +22,7 @@ public:
|
||||
typedef display::WindowDownloadList WList;
|
||||
typedef display::WindowHttpQueue WHttp;
|
||||
typedef display::WindowInput WInput;
|
||||
typedef display::WindowLog WLog;
|
||||
typedef display::WindowStatusbar WStatus;
|
||||
typedef display::WindowTitle WTitle;
|
||||
|
||||
@@ -65,6 +67,7 @@ private:
|
||||
WList* m_window;
|
||||
WTitle* m_title;
|
||||
WStatus* m_status;
|
||||
WLog* m_windowLog;
|
||||
WInput* m_textInput;
|
||||
WHttp* m_windowHttpQueue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user