]> git.saurik.com Git - apt.git/blob - apt-private/private-download.h
implement dpkgs vision of interpreting pkg:<arch> dependencies
[apt.git] / apt-private / private-download.h
1 #ifndef APT_PRIVATE_DOWNLOAD_H
2 #define APT_PRIVATE_DOWNLOAD_H
3
4 #include <apt-pkg/macros.h>
5
6 #include <string>
7 #include <vector>
8
9 class pkgAcquire;
10
11 // Check if all files in the fetcher are authenticated
12 APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
13
14 // show a authentication warning prompt and return true if the system
15 // should continue
16 APT_PUBLIC bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser);
17
18 APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
19
20 APT_PUBLIC bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
21
22 #endif