private-download.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef APT_PRIVATE_DOWNLOAD_H
  2. #define APT_PRIVATE_DOWNLOAD_H
  3. #include <apt-pkg/acquire.h>
  4. #include <apt-pkg/macros.h>
  5. #include <apt-private/acqprogress.h>
  6. #include <string>
  7. #include <vector>
  8. // Check if all files in the fetcher are authenticated
  9. bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
  10. // show a authentication warning prompt and return true if the system
  11. // should continue
  12. bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser);
  13. APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
  14. bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
  15. class APT_PUBLIC aptAcquireWithTextStatus : public pkgAcquire
  16. {
  17. AcqTextStatus Stat;
  18. public:
  19. aptAcquireWithTextStatus();
  20. };
  21. class CommandLine;
  22. APT_PUBLIC bool DoDownload(CommandLine &CmdL);
  23. APT_PUBLIC bool DoChangelog(CommandLine &CmdL);
  24. APT_PUBLIC bool DoClean(CommandLine &CmdL);
  25. APT_PUBLIC bool DoAutoClean(CommandLine &CmdL);
  26. #endif