You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.0 KiB

  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