mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 04:02:30 +00:00
rtorrent: Moving towards working torrents.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@246 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "window_downloads.h"
|
||||
#include "canvas.h"
|
||||
#include "window_downloads.h"
|
||||
|
||||
namespace display {
|
||||
|
||||
WindowDownloads::WindowDownloads(Downloads* d) :
|
||||
WindowDownloads::WindowDownloads(engine::Downloads* d) :
|
||||
Window(new Canvas, true),
|
||||
m_downloads(d) {
|
||||
}
|
||||
@@ -17,7 +17,7 @@ WindowDownloads::redraw() {
|
||||
|
||||
int pos = 1;
|
||||
|
||||
for (Downloads::iterator itr = m_downloads->begin(); itr != m_downloads->end(); ++itr, ++pos)
|
||||
for (engine::Downloads::iterator itr = m_downloads->begin(); itr != m_downloads->end(); ++itr, ++pos)
|
||||
m_canvas->print(1, pos, "Download: %s", itr->get_name().c_str());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
#ifndef RTORRENT_DISPLAY_WINDOW_DOWNLOADS_H
|
||||
#define RTORRENT_DISPLAY_WINDOW_DOWNLOADS_H
|
||||
|
||||
#include "downloads.h"
|
||||
#include "window.h"
|
||||
#include "engine/downloads.h"
|
||||
|
||||
namespace display {
|
||||
|
||||
class WindowDownloads : public Window {
|
||||
public:
|
||||
WindowDownloads(Downloads* d);
|
||||
WindowDownloads(engine::Downloads* d);
|
||||
|
||||
virtual void redraw();
|
||||
|
||||
private:
|
||||
Downloads* m_downloads;
|
||||
engine::Downloads* m_downloads;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user