* Removed Content and moved stuff to DownloadWrapper and FileList.

* Using a char buffer instead of std::string in
Handshake::prepare_key_plus_pad().


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@813 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-02 09:16:36 +00:00
parent c992fa60df
commit e4db1cacc2
10 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ Download::create_info() {
element->push_column("Tied to file:", te_variable_string("tied_to_file"));
element->push_back("");
element->push_column("Chunks:", te_value(&torrent::Download::chunks_done), " / ", te_value(&torrent::Download::chunks_total), " * ", te_value(&torrent::Download::chunks_size));
element->push_column("Chunks:", te_value(&torrent::FileList::completed_chunks), " / ", te_value(&torrent::FileList::size_chunks), " * ", te_value(&torrent::FileList::chunk_size));
element->push_column("Priority:", te_variable_value("priority"));
element->push_column("State changed:", te_variable_value("state_changed", value_base::flag_timer | value_base::flag_elapsed));
+4 -4
View File
@@ -181,7 +181,7 @@ ElementFileList::receive_priority() {
if (m_focus >= fl->size_files())
return;
torrent::File* file = fl->at_index(m_focus);
torrent::File* file = *(fl->begin() + m_focus);
file->set_priority(next_priority(file->priority()));
@@ -199,10 +199,10 @@ ElementFileList::receive_change_all() {
if (m_focus >= fl->size_files())
return;
Priority p = next_priority(fl->at_index(m_focus)->priority());
Priority p = next_priority((*(fl->begin() + m_focus))->priority());
for (int i = 0, last = fl->size_files(); i != last; ++i)
fl->at_index(i)->set_priority(p);
for (torrent::FileList::iterator itr = fl->begin(), last = fl->end(); itr != last; ++itr)
(*itr)->set_priority(p);
m_download->download()->update_priorities();
m_window->mark_dirty();