Cleaned up the API.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@456 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-07 22:20:03 +00:00
parent 2e7333792f
commit 693ce38317
9 changed files with 52 additions and 31 deletions
+2 -2
View File
@@ -184,14 +184,14 @@ void
Download::receive_read_throttle(int t) {
m_windowMainStatus->mark_dirty();
torrent::set(torrent::THROTTLE_READ_CONST_RATE, torrent::get(torrent::THROTTLE_READ_CONST_RATE) + t * 1024);
torrent::set_read_throttle(torrent::get_read_throttle() + t * 1024);
}
void
Download::receive_write_throttle(int t) {
m_windowMainStatus->mark_dirty();
torrent::set(torrent::THROTTLE_ROOT_CONST_RATE, torrent::get(torrent::THROTTLE_ROOT_CONST_RATE) + t * 1024);
torrent::set_write_throttle(torrent::get_write_throttle() + t * 1024);
}
void
+3 -3
View File
@@ -53,7 +53,7 @@ DownloadList::DownloadList(Control* c) :
m_window(c->get_display().end()),
m_windowTitle(new WTitle("rtorrent " VERSION " - " + torrent::get(torrent::LIBRARY_NAME))),
m_windowTitle(new WTitle("rTorrent " VERSION " - libTorrent " + torrent::get_version())),
m_windowStatus(new WStatus(&c->get_core())),
m_windowHttpQueue(new WHttp(&c->get_core().get_http_queue())),
@@ -172,14 +172,14 @@ void
DownloadList::receive_read_throttle(int t) {
m_windowStatus->mark_dirty();
torrent::set(torrent::THROTTLE_READ_CONST_RATE, torrent::get(torrent::THROTTLE_READ_CONST_RATE) + t * 1024);
torrent::set_read_throttle(torrent::get_read_throttle() + t * 1024);
}
void
DownloadList::receive_write_throttle(int t) {
m_windowStatus->mark_dirty();
torrent::set(torrent::THROTTLE_ROOT_CONST_RATE, torrent::get(torrent::THROTTLE_ROOT_CONST_RATE) + t * 1024);
torrent::set_write_throttle(torrent::get_write_throttle() + t * 1024);
}
void