* Moved various Download related stuff from core::Manager to

core::DownloadList.

* SVN didn't properly commit changes to view.h, fixed.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@678 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-04-29 20:27:04 +00:00
parent 236f689efc
commit fff7838f13
5 changed files with 108 additions and 46 deletions
+6 -6
View File
@@ -41,7 +41,7 @@
// elements get accessed often but not modified, better with cache
// locality.
//
// ViewDownloads::m_size indicates the number of Download's that
// View::m_size indicates the number of Download's that
// remain visible, e.g. has not been filtered out. The Download's that
// were filtered are still in the underlying vector, but cannot be
// accessed through the normal stl container functions.
@@ -64,7 +64,7 @@ class DownloadList;
class ViewSort;
class ViewFilter;
class ViewDownloads : public std::vector<core::Download*> {
class View : public std::vector<core::Download*> {
public:
typedef std::vector<core::Download*> base_type;
typedef sigc::signal0<void> signal_type;
@@ -81,8 +81,8 @@ public:
using base_type::begin;
using base_type::rbegin;
ViewDownloads() {}
~ViewDownloads();
View() {}
~View();
void initialize(const std::string& name, core::DownloadList* list);
@@ -130,8 +130,8 @@ public:
signal_type& signal_changed() { return m_signalChanged; }
private:
ViewDownloads(const ViewDownloads&);
void operator = (const ViewDownloads&);
View(const View&);
void operator = (const View&);
void received_insert(core::Download* d);
void received_erase(core::Download* d);