summaryrefslogtreecommitdiff
path: root/src/DownloadEngineFactory.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
commit048a2cf59737f761876e81a77e8d064c45c752d7 (patch)
tree65c9d5498aafe6a8c8e640ddfcc43c7013504d0d /src/DownloadEngineFactory.h
parente26bbbb9eee140ba24402fe872a752b42f0077de (diff)
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented BitTorrent/http/ftp integrated download. I've rewritten lots of files and now some headers have forward class declarations to reduce compile time. The implementation is extremely alpha stage, I recommend to use this for testing purpose only.
Diffstat (limited to 'src/DownloadEngineFactory.h')
-rw-r--r--src/DownloadEngineFactory.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/DownloadEngineFactory.h b/src/DownloadEngineFactory.h
index f9d11e5d..59c41712 100644
--- a/src/DownloadEngineFactory.h
+++ b/src/DownloadEngineFactory.h
@@ -36,28 +36,23 @@
#define _D_DOWNLOAD_ENGINE_FACTORY_H_
#include "common.h"
-#include "ConsoleDownloadEngine.h"
-#ifdef ENABLE_BITTORRENT
-# include "TorrentConsoleDownloadEngine.h"
-#endif // ENABLE_BITTORRENT
+
+class Logger;
+class Option;
+class RequestGroup;
+extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
+extern typedef deque<RequestGroupHandle> RequestGroups;
+class DownloadEngine;
+extern typedef SharedHandle<DownloadEngine> DownloadEngineHandle;
class DownloadEngineFactory {
+private:
+ const Logger* _logger;
public:
- static ConsoleDownloadEngine*
- newConsoleEngine(const Option* op,
- const RequestGroups& requestGroups);
-
- static ConsoleDownloadEngine*
- newConsoleEngine(const Option* option,
- const Requests& requests,
- const Requests& reserved);
+ DownloadEngineFactory();
-#ifdef ENABLE_BITTORRENT
- static TorrentConsoleDownloadEngine*
- newTorrentConsoleEngine(const BtContextHandle& btContext,
- const Option* option,
- const Strings& targetFiles);
-#endif // ENABLE_BITTORRENT
+ DownloadEngineHandle
+ newDownloadEngine(Option* op, const RequestGroups& requestGroups);
};
#endif // _D_DOWNLOAD_ENGINE_FACTORY_H_