* Keep a cache listing all, including failed, torrent loads and the

mtimes of those files. This is used to ensure that e.g. the watch dir
does not try to load bad/duplicate torrents, in addition to optimizing
the pruning of those already loaded.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1024 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-12-31 10:12:17 +00:00
parent ce64ea89b1
commit 7abc459d74
10 changed files with 215 additions and 25 deletions
+8
View File
@@ -48,6 +48,10 @@ namespace torrent {
class Bencode;
}
namespace utils {
class FileStatusCache;
}
namespace core {
class DownloadStore;
@@ -58,6 +62,8 @@ class View;
class Manager {
public:
typedef DownloadList::iterator DListItr;
typedef utils::FileStatusCache FileStatusCache;
typedef sigc::slot1<void, DownloadList::iterator> SlotReady;
typedef sigc::slot0<void> SlotFailed;
@@ -66,6 +72,7 @@ public:
DownloadList* download_list() { return m_downloadList; }
DownloadStore* download_store() { return m_downloadStore; }
FileStatusCache* file_status_cache() { return m_fileStatusCache; }
HttpQueue* http_queue() { return m_httpQueue; }
@@ -122,6 +129,7 @@ private:
DownloadList* m_downloadList;
DownloadStore* m_downloadStore;
FileStatusCache* m_fileStatusCache;
HttpQueue* m_httpQueue;
View* m_hashingView;