]>
Commit | Line | Data |
---|---|---|
866893a6 DK |
1 | #ifndef APT_PRIVATE_DOWNLOAD_H |
2 | #define APT_PRIVATE_DOWNLOAD_H | |
3 | ||
63ff4208 DK |
4 | #include <apt-pkg/macros.h> |
5 | ||
460601d5 DK |
6 | #include <string> |
7 | ||
453b82a3 | 8 | class pkgAcquire; |
866893a6 | 9 | |
460601d5 DK |
10 | APT_PUBLIC bool CheckDropPrivsMustBeDisabled(pkgAcquire &Fetcher); |
11 | ||
a3f1d60c | 12 | // Check if all files in the fetcher are authenticated |
63ff4208 | 13 | APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser); |
a3f1d60c MV |
14 | |
15 | // show a authentication warning prompt and return true if the system | |
16 | // should continue | |
460601d5 | 17 | APT_PUBLIC bool AuthPrompt(std::string const &UntrustedList, bool const PromptUser); |
a3f1d60c | 18 | |
63ff4208 | 19 | APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure); |
866893a6 | 20 | |
9c81f8de DK |
21 | APT_PUBLIC bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes); |
22 | ||
866893a6 | 23 | #endif |