mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 21:52:30 +00:00
cd9b014eb6
Added focus to WindowDownloadList. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@249 e378c898-3ddf-0310-93e7-cc216c733640
32 lines
861 B
C++
32 lines
861 B
C++
#ifndef RTORRENT_CORE_DOWNLOAD_H
|
|
#define RTORRENT_CORE_DOWNLOAD_H
|
|
|
|
#include <sigc++/connection.h>
|
|
#include <torrent/download.h>
|
|
|
|
namespace core {
|
|
|
|
class Download {
|
|
public:
|
|
Download(torrent::Download d) : m_download(d) {}
|
|
|
|
std::string get_hash() { return m_download.get_hash(); }
|
|
torrent::Download& get_download() { return m_download; }
|
|
|
|
void open() { m_download.open(); }
|
|
void close() { m_download.close(); }
|
|
|
|
void stop() { m_download.stop(); }
|
|
|
|
void hash_check(bool resume = false) { m_download.hash_check(resume); }
|
|
|
|
bool operator == (const std::string& str) { return str == m_download.get_hash(); }
|
|
|
|
private:
|
|
torrent::Download m_download;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|