Starting work on core::Manager, working for file/http inserts.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@267 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-11 19:42:25 +00:00
parent 8ec38be77e
commit aec27deaeb
4 changed files with 106 additions and 22 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef RTORRENT_CORE_MANAGER_H
#define RTORRENT_CORE_MANAGER_H
#include "download_list.h"
#include "http_queue.h"
namespace core {
class Manager {
public:
typedef sigc::slot1<void, DownloadList::iterator> SlotReady;
typedef sigc::slot0<void> SlotFailed;
DownloadList& get_download_list() { return m_downloadList; }
HttpQueue& get_http_queue() { return m_httpQueue; }
void insert(const std::string& uri);
private:
void receive_http_done(torrent::Http* http);
void create_file(const std::string& uri);
void create_http(const std::string& uri);
DownloadList m_downloadList;
HttpQueue m_httpQueue;
};
}
#endif