diff --git a/src/Context.cc b/src/Context.cc new file mode 100644 index 00000000..da23982d --- /dev/null +++ b/src/Context.cc @@ -0,0 +1,298 @@ +/* */ +#include "Context.h" + +#include +#include +#include + +#include +#include +#include + +#include "SharedHandle.h" +#include "LogFactory.h" +#include "Logger.h" +#include "util.h" +#include "FeatureConfig.h" +#include "MultiUrlRequestInfo.h" +#include "SimpleRandomizer.h" +#include "File.h" +#include "message.h" +#include "prefs.h" +#include "Option.h" +#include "a2algo.h" +#include "a2io.h" +#include "a2time.h" +#include "Platform.h" +#include "FileEntry.h" +#include "RequestGroup.h" +#include "ConsoleStatCalc.h" +#include "NullStatCalc.h" +#include "download_helper.h" +#include "Exception.h" +#include "ProtocolDetector.h" +#include "RecoverableException.h" +#include "SocketCore.h" +#include "DownloadContext.h" +#include "fmt.h" +#include "NullOutputFile.h" +#include "console.h" +#include "UriListParser.h" +#ifdef ENABLE_BITTORRENT +# include "bittorrent_helper.h" +#endif // ENABLE_BITTORRENT +#ifdef ENABLE_METALINK +# include "metalink_helper.h" +# include "MetalinkEntry.h" +#endif // ENABLE_METALINK +#ifdef ENABLE_MESSAGE_DIGEST +# include "message_digest_helper.h" +#endif // ENABLE_MESSAGE_DIGEST + +extern char* optarg; +extern int optind, opterr, optopt; + +namespace aria2 { + +SharedHandle getStatCalc(const SharedHandle