* Starting work on ElementText for displaying generic information.

* If a storage error was thrown from make_directory in
EntryList::open, it would try to erase a FileMeta that wasn't inserted.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@753 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-08-09 19:55:34 +00:00
parent ba28df3ff2
commit ca58b43d8b
17 changed files with 360 additions and 67 deletions
+3 -1
View File
@@ -37,6 +37,7 @@
#ifndef RTORRENT_CORE_DOWNLOAD_H
#define RTORRENT_CORE_DOWNLOAD_H
#include <rak/string_manip.h>
#include <sigc++/connection.h>
#include <torrent/download.h>
#include <torrent/file_list.h>
@@ -83,13 +84,14 @@ public:
const std::string& variable_string(const std::string& key) const { return m_variables.get_string(key); }
download_type* download() { return &m_download; }
const download_type* download() const { return &m_download; }
const download_type* c_download() const { return &m_download; }
torrent::Object* bencode() { return m_download.bencode(); }
file_list_type* file_list() { return &m_fileList; }
tracker_list_type* tracker_list() { return &m_trackerList; }
const std::string& info_hash() const { return m_download.info_hash(); }
std::string info_hash_hex() const { return rak::transform_hex(m_download.info_hash()); }
const std::string& message() const { return m_message; }
void set_message(const std::string& msg) { m_message = msg; }