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:
rakshasa
2005-02-25 22:05:15 +00:00
parent f66424f642
commit 9fe97ee490
17 changed files with 220 additions and 21 deletions
+16 -8
View File
@@ -1,6 +1,8 @@
#ifndef RTORRENT_WINDOW_BASE_H
#define RTORRENT_WINDOW_BASE_H
#include <sigc++/slot.h>
#include "utils/timer.h"
namespace display {
@@ -9,38 +11,44 @@ class Canvas;
class Window {
public:
typedef sigc::slot0<void> Slot;
Window(Canvas* c = NULL, bool d = false, int h = 1) :
m_canvas(c), m_active(true), m_dynamic(d), m_minHeight(h) {}
virtual ~Window();
bool is_active() { return m_active; }
bool is_dynamic() { return m_dynamic; }
bool is_dirty() { return m_lastDraw == 0; }
bool is_active() { return m_active; }
bool is_dynamic() { return m_dynamic; }
bool is_dirty() { return m_lastDraw == 0; }
int get_min_height() { return m_minHeight; }
int get_min_height() { return m_minHeight; }
bool get_active() { return m_active; }
void set_active(bool a) { m_active = a; }
bool get_active() { return m_active; }
void set_active(bool a) { m_active = a; }
void refresh();
void resize(int x, int y, int w, int h);
void mark_dirty() { m_lastDraw = 0; }
void mark_dirty() { m_lastDraw = 0; }
virtual void redraw() = 0;
static void slot_adjust(Slot s) { m_slotAdjust = s; }
protected:
Window(const Window&);
void operator = (const Window&);
static Slot m_slotAdjust;
Canvas* m_canvas;
bool m_active;
bool m_dynamic;
int m_minHeight;
utils::Timer m_lastDraw;
utils::Timer m_lastDraw;
};
}