* Added FileListIterator to the API, which allows the client to

iterate through FileList as if it consisted of directories.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@831 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-25 10:54:31 +00:00
parent c65b6aa9ff
commit c453565e8f
5 changed files with 91 additions and 137 deletions
+4 -1
View File
@@ -38,6 +38,7 @@
#define RTORRENT_UI_ELEMENT_FILE_LIST_H
#include <torrent/common.h>
#include <torrent/data/file_list_iterator.h>
#include "core/download.h"
@@ -56,6 +57,8 @@ public:
typedef torrent::priority_t Priority;
typedef display::WindowFileList WFileList;
typedef torrent::FileListIterator iterator;
ElementFileList(core::Download* d);
void activate(display::Frame* frame, bool focus = true);
@@ -78,7 +81,7 @@ private:
WFileList* m_window;
// Change to unsigned, please.
unsigned int m_focus;
iterator m_focus;
};
}