Added man pages.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@475 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-25 21:50:32 +00:00
parent 088398d6d6
commit 28b369dc83
11 changed files with 463 additions and 175 deletions
+4 -4
View File
@@ -76,7 +76,7 @@ DownloadList::DownloadList(Control* c) :
}
DownloadList::~DownloadList() {
if (m_window != m_control->get_display().end())
if (is_active())
throw std::logic_error("ui::DownloadList::~DownloadList() called on an active object");
std::for_each(m_uiArray, m_uiArray + DISPLAY_MAX_SIZE, rak::call_delete<ElementBase>());
@@ -93,7 +93,7 @@ DownloadList::~DownloadList() {
void
DownloadList::activate() {
if (m_window != m_control->get_display().end())
if (is_active())
throw std::logic_error("ui::Download::activate() called on an already activated object");
utils::taskScheduler.insert(&m_taskUpdate, utils::Timer::cache() + 1000000);
@@ -115,7 +115,7 @@ DownloadList::activate() {
void
DownloadList::disable() {
if (m_window == m_control->get_display().end())
if (!is_active())
throw std::logic_error("ui::Download::disable() called on an already disabled object");
disable_display();
@@ -141,7 +141,7 @@ DownloadList::disable() {
void
DownloadList::activate_display(Display d) {
if (m_window == m_control->get_display().end())
if (!is_active())
throw std::logic_error("ui::DownloadList::activate_display(...) could not find previous display iterator");
if (d >= DISPLAY_MAX_SIZE)