mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +00:00
cd9b014eb6
Added focus to WindowDownloadList. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@249 e378c898-3ddf-0310-93e7-cc216c733640
24 lines
329 B
C++
24 lines
329 B
C++
#include "config.h"
|
|
|
|
#include <torrent/torrent.h>
|
|
|
|
#include "downloads.h"
|
|
|
|
namespace engine {
|
|
|
|
void
|
|
Downloads::create(std::istream& str) {
|
|
torrent::Download d = torrent::download_create(str);
|
|
|
|
Base::push_back(d);
|
|
}
|
|
|
|
void
|
|
Downloads::erase(iterator itr) {
|
|
torrent::download_remove(itr->get_hash());
|
|
|
|
Base::erase(itr);
|
|
}
|
|
|
|
}
|