/* */ #ifndef _D_DOWNLOAD_ENGINE_FACTORY_H_ #define _D_DOWNLOAD_ENGINE_FACTORY_H_ #include "common.h" #include "ConsoleDownloadEngine.h" #ifdef ENABLE_BITTORRENT # include "TorrentConsoleDownloadEngine.h" #endif // ENABLE_BITTORRENT class DownloadEngineFactory { public: static ConsoleDownloadEngine* newConsoleEngine(const Option* op, const RequestGroups& requestGroups); static ConsoleDownloadEngine* newConsoleEngine(const Option* option, const Requests& requests, const Requests& reserved); #ifdef ENABLE_BITTORRENT static TorrentConsoleDownloadEngine* newTorrentConsoleEngine(const BtContextHandle& btContext, const Option* option, const Strings& targetFiles); #endif // ENABLE_BITTORRENT }; #endif // _D_DOWNLOAD_ENGINE_FACTORY_H_