* Added various TextElement flags and replaced WindowPeerInfo with a

WindowText.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@756 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-08-12 18:35:19 +00:00
parent da0d5dbf22
commit 34258bcfb2
22 changed files with 402 additions and 319 deletions
-5
View File
@@ -90,11 +90,6 @@ public:
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()); }
std::string local_id_escaped() const { return rak::copy_escape_html(m_download.local_id()); }
const std::string& message() const { return m_message; }
void set_message(const std::string& msg) { m_message = msg; }
+2 -2
View File
@@ -166,7 +166,7 @@ DownloadStore::is_correct_format(std::string f) {
for (std::string::const_iterator itr = f.begin(); itr != f.end() - 8; ++itr)
if (!(*itr >= '0' && *itr <= '9') &&
!(*itr >= 'A' && *itr <= 'F'))
!(*itr >= 'A' && *itr <= 'F'))
return false;
return true;
@@ -174,7 +174,7 @@ DownloadStore::is_correct_format(std::string f) {
std::string
DownloadStore::create_filename(Download* d) {
return m_path + rak::transform_hex(d->info_hash()) + ".torrent";
return m_path + rak::transform_hex(d->download()->info_hash()) + ".torrent";
}
}