mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
* Change :rtorrent:state to an integer.
* Split up DownloadList::insert to get proper ordering of slot map calls and variable initialization. * Added filtering to ViewDownloads. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@675 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+10
-1
@@ -51,10 +51,15 @@ class ViewSort;
|
||||
class ViewManager : public rak::unordered_vector<ViewDownloads*> {
|
||||
public:
|
||||
typedef rak::unordered_vector<ViewDownloads*> base_type;
|
||||
|
||||
typedef std::map<std::string, ViewSort*> sort_map;
|
||||
typedef ViewDownloads::sort_list sort_list;
|
||||
typedef std::list<std::string> sort_args;
|
||||
|
||||
typedef std::map<std::string, ViewFilter*> filter_map;
|
||||
typedef ViewDownloads::filter_list filter_list;
|
||||
typedef std::list<std::string> filter_args;
|
||||
|
||||
using base_type::iterator;
|
||||
using base_type::const_iterator;
|
||||
using base_type::reverse_iterator;
|
||||
@@ -92,12 +97,16 @@ public:
|
||||
void set_sort_new(const std::string& name, const sort_args& sort);
|
||||
void set_sort_current(const std::string& name, const sort_args& sort);
|
||||
|
||||
void set_filter(const std::string& name, const filter_args& args);
|
||||
|
||||
private:
|
||||
inline sort_list build_list(const sort_args& args);
|
||||
inline sort_list build_sort_list(const sort_args& args);
|
||||
inline filter_list build_filter_list(const sort_args& args);
|
||||
|
||||
DownloadList* m_list;
|
||||
|
||||
sort_map m_sort;
|
||||
filter_map m_filter;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user