* Fixed an overflow in rak::partial_queue, and added some exceptions.

* Changed to configure script so --disable-mincore must be called
explicitly to disable it.

* API and core::Download cleanup.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@660 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-03-31 23:02:39 +00:00
parent 59a23ea9ed
commit d9d27139d1
26 changed files with 266 additions and 254 deletions
+6 -6
View File
@@ -84,7 +84,7 @@ ElementFileList::receive_next() {
if (m_window == NULL)
throw torrent::internal_error("ui::ElementFileList::receive_next(...) called on a disabled object");
if (++m_focus >= m_download->get_download().file_list().size())
if (++m_focus >= m_download->download()->file_list().size())
m_focus = 0;
m_window->mark_dirty();
@@ -95,7 +95,7 @@ ElementFileList::receive_prev() {
if (m_window == NULL)
throw torrent::internal_error("ui::ElementFileList::receive_prev(...) called on a disabled object");
torrent::FileList fl = m_download->get_download().file_list();
torrent::FileList fl = m_download->download()->file_list();
if (fl.size() == 0)
return;
@@ -113,7 +113,7 @@ ElementFileList::receive_priority() {
if (m_window == NULL)
throw torrent::internal_error("ui::ElementFileList::receive_prev(...) called on a disabled object");
torrent::FileList fl = m_download->get_download().file_list();
torrent::FileList fl = m_download->download()->file_list();
if (m_focus >= fl.size())
return;
@@ -122,7 +122,7 @@ ElementFileList::receive_priority() {
file.set_priority(next_priority(file.priority()));
m_download->get_download().update_priorities();
m_download->download()->update_priorities();
m_window->mark_dirty();
}
@@ -131,7 +131,7 @@ ElementFileList::receive_change_all() {
if (m_window == NULL)
throw torrent::internal_error("ui::ElementFileList::receive_prev(...) called on a disabled object");
torrent::FileList fl = m_download->get_download().file_list();
torrent::FileList fl = m_download->download()->file_list();
if (m_focus >= fl.size())
return;
@@ -141,7 +141,7 @@ ElementFileList::receive_change_all() {
for (int i = 0, last = fl.size(); i != last; ++i)
fl.get(i).set_priority(p);
m_download->get_download().update_priorities();
m_download->download()->update_priorities();
m_window->mark_dirty();
}